Export (0) Print
Expand All
Expand Minimize

OffsetType Enumeration

Specifies where an offset is applied to a window element.

Namespace:  System.Windows.Forms.VisualStyles
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public enum OffsetType

Member nameDescription
TopLeftThe offset is applied from the top left of the element.
TopRightThe offset is applied from the top right of the element.
TopMiddleThe offset is applied from the top middle of the element.
BottomLeftThe offset is applied from the bottom left of the element.
BottomRightThe offset is applied from the bottom right of the element.
BottomMiddleThe offset is applied from the bottom middle of the element.
MiddleLeftThe offset is applied from the middle left of the element.
MiddleRightThe offset is applied from the middle right of the element.
LeftOfCaptionThe offset is applied from the left of the caption.
RightOfCaptionThe offset is applied from the right of the caption.
LeftOfLastButtonThe offset is applied from the left of the last button.
RightOfLastButtonThe offset is applied from the right of the last button.
AboveLastButtonThe offset is applied from above the last button.
BelowLastButtonThe 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, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft