Defines the scrolling style of the background bitmap.
Get
| C# | SftTreeBackgroundStyleConstants Style = object.BackgroundStyle; |
| VB.NET | Style = object.BackgroundStyle As SftTreeBackgroundStyleConstants |
| C++ | enum SftTreeBackgroundStyleConstants Style = object->BackgroundStyle; enum SftTreeBackgroundStyleConstants Style = object->GetBackgroundStyle(); |
| C | HRESULT object->get_BackgroundStyle(enum SftTreeBackgroundStyleConstants* Style); |
| VB | Style = object.BackgroundStyle As SftTreeBackgroundStyleConstants |
Put
| C# | SftTreeBackgroundStyleConstants object.BackgroundStyle = Style; |
| VB.NET | object.BackgroundStyle = Style As SftTreeBackgroundStyleConstants |
| C++ | enum SftTreeBackgroundStyleConstants object->BackgroundStyle = Style; void object->PutBackgroundStyle(enum SftTreeBackgroundStyleConstants Style); |
| C | HRESULT object->put_BackgroundStyle(enum SftTreeBackgroundStyleConstants Style); |
| VB | object.BackgroundStyle = Style As SftTreeBackgroundStyleConstants |
object
Style
Defines the scrolling style of the background bitmap.
| Style | Value | Description |
|---|---|---|
| backSftTreeNone | 0 | The bitmap is never scrolled horizontally and is aligned with the top/left edge of the tree control window (or the offset defined using the properties BackgroundX and BackgroundY). |
| backSftTreeHScroll | 1 | The bitmap is aligned with the top/left edge of the tree control window (or the offset defined using the properties BackgroundX and BackgroundY) and the alignment is further adjusted by the current horizontal scrolling offset (see Items.HorizontalOffset) resulting in horizontal scrolling of the background. |
| backSftTreeCenter | 2 | The bitmap is centered vertically and horizontally within the available area. Bitmap transparency is used for the bitmap when used with this style. |
The BackgroundStyle property defines the scrolling style of the background bitmap.
If a background picture has been defined using the BackgroundPicture property, the BackgroundStyle property defines the bitmap positioning and behavior when the tree control contents are scrolled horizontally.
See Also SftTree Object | Object Hierarchy