AbstractSize Structure

Visual Studio 2015
 

Microsoft internal use only. A class that represents size abstractly. This is useful with controls or panels that support multiple orientations. The rendering or layout code for the control or panel can be written using a single, "natural" orientation and then the size can be converted, if necessary, to the control's or panel's actual orientation as needed. This can substantially simplify rendering or layout logic.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public struct AbstractSize

NameDescription
System_CAPS_pubmethodAbstractSize(Orientation, Orientation)

Initializes a new instance of AbstractSize.

System_CAPS_pubmethodAbstractSize(Orientation, Orientation, Double, Double)

Initializes a new instance of AbstractSize.

System_CAPS_pubmethodAbstractSize(Orientation, Orientation, Size)

Initializes a new instance of AbstractSize.

NameDescription
System_CAPS_pubpropertyAbstractHeight

Gets or sets the abstract height of the size.

System_CAPS_pubpropertyAbstractWidth

Gets or sets the abstract width of the size.

System_CAPS_pubpropertyActualOrientation

The actual orientation of the geometric unit. This is typically determined by the value of the Orientation property of the control or panel in which this structure is used.

System_CAPS_pubpropertyIsNatural

Determines whether the size's actual orientation matches its natural orientation.

System_CAPS_pubpropertyNaturalOrientation

The "natural" orientation of the geometric unit, from the perspective of the context in which it is used. For example, it may be most natural to write the layout code for a StackPanel using Vertical orientation since a stack in the real world is a vertical thing.

The choice of natural orientation within a given context is not important, as long as the same natural orientation is used consistently throughout that context.

System_CAPS_pubpropertyRealHeight

The real, non-abstract height of the size. If IsNatural is true, the real height and the abstract height are the same. If IsNatural is false, the real height is the abstract width.

System_CAPS_pubpropertyRealSize

The real, non-abstract size represented by this structure. If IsNatural is true, the real size and the abstract size are the same. If IsNatural is false, the real size is the inverse of the abstract size.

System_CAPS_pubpropertyRealWidth

The real, non-abstract width of the size. If IsNatural is true, the real width and the abstract width are the same. If IsNatural is false, the real width is the abstract height.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from ValueType.)

System_CAPS_pubmethodGetHashCode()

(Inherited from ValueType.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticInvert(Size)

Returns a Size structure with the input's Width and Height properties swapped.

System_CAPS_pubmethodToString()

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: