AbstractPoint AbstractPoint AbstractPoint AbstractPoint AbstractPoint Struct

Definition

Microsoft internal use only. A class that represents a point 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 point can be converted, if necessary, to the control's or panel's actual orientation as needed. This can substantially simplify rendering or layout logic.

public value class AbstractPoint
struct AbstractPoint
public struct AbstractPoint
type AbstractPoint = struct
Public Structure AbstractPoint
Inheritance
AbstractPointAbstractPointAbstractPointAbstractPointAbstractPoint

Constructors

AbstractPoint(Orientation, Orientation) AbstractPoint(Orientation, Orientation) AbstractPoint(Orientation, Orientation) AbstractPoint(Orientation, Orientation) AbstractPoint(Orientation, Orientation)

Initializes a new instance of AbstractPoint.

AbstractPoint(Orientation, Orientation, Point) AbstractPoint(Orientation, Orientation, Point) AbstractPoint(Orientation, Orientation, Point) AbstractPoint(Orientation, Orientation, Point) AbstractPoint(Orientation, Orientation, Point)

Initializes a new instance of AbstractPoint.

AbstractPoint(Orientation, Orientation, Double, Double) AbstractPoint(Orientation, Orientation, Double, Double) AbstractPoint(Orientation, Orientation, Double, Double) AbstractPoint(Orientation, Orientation, Double, Double) AbstractPoint(Orientation, Orientation, Double, Double)

Initializes a new instance of AbstractPoint.

Properties

AbstractX AbstractX AbstractX AbstractX AbstractX

Gets or sets the abstract X of the point.

AbstractY AbstractY AbstractY AbstractY AbstractY

Gets or sets the abstract Y of the point.

ActualOrientation ActualOrientation ActualOrientation ActualOrientation ActualOrientation

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.

IsNatural IsNatural IsNatural IsNatural IsNatural

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

NaturalOrientation NaturalOrientation NaturalOrientation NaturalOrientation NaturalOrientation

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.

RealPoint RealPoint RealPoint RealPoint RealPoint

Gets or sets the real, non-abstract point represented by this structure. If IsNatural is true, the real point and the abstract point are the same. If IsNatural is false, the real point is the inverse of the abstract point.

RealX RealX RealX RealX RealX

TGets or sets the real, non-abstract X of the point. If IsNatural is true, the real X and the abstract X are the same. If IsNatural is false, the real X is the abstract Y.

RealY RealY RealY RealY RealY

The real, non-abstract Y of the point. If IsNatural is true, the real Y and the abstract Y are the same. If IsNatural is false, the real Y is the abstract X.

Methods

Invert(Point) Invert(Point) Invert(Point) Invert(Point) Invert(Point)

Returns a Point structure with the input's X and Y properties swapped.

ToString() ToString() ToString() ToString() ToString()

Converts the object to a string.

Applies to