## ButtonStyle : setImageHAlign

## ButtonStyle : setImageHMargin

## ButtonStyle : setImageVAlign

## ButtonStyle : setImageVMargin

ButtonStyle.setImageHAlign and setImageVAlign: Set the alignment of the image in the Button

ButtonStyle.setImageHMargin and setImageVMargin: Set the margin of the image

### Syntaxes

Button.setImageHAlign(string)

Button.setImageHMargin(number)

Button.setImageVAlign(string)

Button.setImageVMargin(number)

### Parameters

string

setImageHAlign and setImageVAlign methods. String. The vertical and horizontal alignment of the image.

setImageHAlign: Can be 'LEFT', 'CENTER' or 'RIGHT'

setImageVAlign: Can be 'TOP', 'CENTER' or 'BOTTOM'

number

setImageHMargin and setImageVmargin methods. Integer. The number of pixels between the borders set with the setImageHAlign and setImageVAlign and the image.

### Comment

Those methods only apply to images used in the setImageNormal, setImageRoll etc … and do not apply to the image set with the setBgImage.