'Set the Format cell alignment.
Args:
alignment: String representing alignment. No default.
Returns:
Nothing.'

def set_align(self, alignment):

    alignment = alignment.lower()
    if (alignment == 'left'):
        self.set_text_h_align(1)
    if (alignment == 'centre'):
        self.set_text_h_align(2)
    if (alignment == 'center'):
        self.set_text_h_align(2)
    if (alignment == 'right'):
        self.set_text_h_align(3)
    if (alignment == 'fill'):
        self.set_text_h_align(4)
    if (alignment == 'justify'):
        self.set_text_h_align(5)
    if (alignment == 'center_across'):
        self.set_text_h_align(6)
    if (alignment == 'centre_across'):
        self.set_text_h_align(6)
    if (alignment == 'distributed'):
        self.set_text_h_align(7)
    if (alignment == 'justify_distributed'):
        self.set_text_h_align(7)
    if (alignment == 'justify_distributed'):
        self.just_distrib = 1
    if (alignment == 'top'):
        self.set_text_v_align(1)
    if (alignment == 'vcentre'):
        self.set_text_v_align(2)
    if (alignment == 'vcenter'):
        self.set_text_v_align(2)
    if (alignment == 'bottom'):
        self.set_text_v_align(3)
    if (alignment == 'vjustify'):
        self.set_text_v_align(4)
    if (alignment == 'vdistributed'):
        self.set_text_v_align(5)
