Partilhar via


PictureMargin Property

Specifies the margin in pixels between an image as specified by the Picture property on a control and the edge of the control as determined by the PicturePosition property. Read/write at design time and run time.

Control.PictureMargin [= nValue]

Return Value

  • nValue
    Specifies the number of pixels between an image and the edge of the control. You can specify a value of 0 (default) to 65,535 for nValue.

    When PictureMargin is set to 0, positioning of the image is determined by the PicturePosition and Alignment properties.

    When PictureMargin is greater than 0, the image appears nValue number of pixels from the edge of the control and only PicturePosition affects the positioning of the image. For more information, see PicturePosition Property and Alignment Property.

Remarks

Applies To: CheckBox | CommandButton | OptionButton

PictureMargin applies to CheckBox and OptionButton controls when their Style property is set to 1 (Graphical). For more information, see Style Property.

PictureMargin is disregarded when PicturePosition is set to a value greater than 11.

See Also

Reference

PictureSpacing Property
Controls for Displaying Information

Other Resources

Properties (Visual FoxPro)