This documentation is archived and is not being maintained.
OffsetType Enumeration
Visual Studio 2010
Specifies where an offset is applied to a window element.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Member name | Description | |
|---|---|---|
| TopLeft | The offset is applied from the top left of the element. | |
| TopRight | The offset is applied from the top right of the element. | |
| TopMiddle | The offset is applied from the top middle of the element. | |
| BottomLeft | The offset is applied from the bottom left of the element. | |
| BottomRight | The offset is applied from the bottom right of the element. | |
| BottomMiddle | The offset is applied from the bottom middle of the element. | |
| MiddleLeft | The offset is applied from the middle left of the element. | |
| MiddleRight | The offset is applied from the middle right of the element. | |
| LeftOfCaption | The offset is applied from the left of the caption. | |
| RightOfCaption | The offset is applied from the right of the caption. | |
| LeftOfLastButton | The offset is applied from the left of the last button. | |
| RightOfLastButton | The offset is applied from the right of the last button. | |
| AboveLastButton | The offset is applied from above the last button. | |
| BelowLastButton | The offset is applied from below the last button. |
The OffsetType values represent the return values of the VisualStyleRenderer::GetEnumValue method when it is called with an argument value of EnumProperty::OffsetType.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: