Defines the background image.
Get
| C# | SftPictureObject refImageObj = object.ImageBackground; |
| VB.NET | refImageObj = object.ImageBackground As SftPictureObject |
| C++ | ISftPictureObject* refImageObj = object->ImageBackground; ISftPictureObject* refImageObj = object->GetImageBackground(); |
| C | HRESULT object->get_ImageBackground(ISftPictureObject** refImageObj); |
| VB | Set refImageObj = object.ImageBackground As SftPictureObject |
Put
| C# | SftPictureObject object.ImageBackground = refImageObj; |
| VB.NET | object.ImageBackground = refImageObj As SftPictureObject |
| C++ | ISftPictureObject* object->ImageBackground = refImageObj; void object->PutImageBackground(ISftPictureObject* refImageObj); |
| C | HRESULT object->put_ImageBackground(ISftPictureObject* refImageObj); |
| VB | object.ImageBackground = refImageObj As SftPictureObject |
object
refImageObj
Defines the background image.
The ImageBackground property defines the background image.
Each button control offers an optional background image, which is always displayed centered within the available space inside the button. Other components of the button, like the attributes defined using the Text, Image1 or Image2 properties, simply overlay the background image.
Depending on the button state, the background image defined using the ImageBackground, ImageBackgroundDisabled, ImageBackgroundHover or ImageBackgroundPressed is displayed.
The background image is not displayed in the drop down portion of a drop down button.
See Also SftButton Object | Object Hierarchy