Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

OffsetType Enumeration

Note: This enumeration is new in the .NET Framework version 2.0.

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
public enum OffsetType
public enum OffsetType
 Member nameDescription
AboveLastButtonThe offset is applied from above the last button. 
BelowLastButtonThe offset is applied from below the last button. 
BottomLeftThe offset is applied from the bottom left of the element. 
BottomMiddleThe offset is applied from the bottom middle of the element. 
BottomRightThe offset is applied from the bottom right of the element. 
LeftOfCaptionThe offset is applied from the left of the caption. 
LeftOfLastButtonThe offset is applied from the left of the last button. 
MiddleLeftThe offset is applied from the middle left of the element. 
MiddleRightThe offset is applied from the middle right of the element. 
RightOfCaptionThe offset is applied from the right of the caption. 
RightOfLastButtonThe offset is applied from the right of the last button. 
TopLeftThe offset is applied from the top left of the element. 
TopMiddleThe offset is applied from the top middle of the element. 
TopRightThe offset is applied from the top right of the element. 

The OffsetType values represent the return values of the VisualStyleRenderer.GetEnumValue method when it is called with an argument value of EnumProperty.OffsetType.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.