[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.AnchorPoint

Class AnchorPoint

Namespace
GrapeCity.Documents.Layout
Assembly
GcDocs.Imaging.dll

Represents a point to be used as an anchor.

public class AnchorPoint
Inheritance
object
AnchorPoint
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

HeightFactor

Gets or sets the value to be multiplied by Height before adding to the position of the Rect's top side.

public float HeightFactor { get; set; }

Property Value

float

LeftOffset

Gets or sets the value to be added to the position of the Rect's left side.

public float LeftOffset { get; set; }

Property Value

float

Location

Gets the coordinates of the point relative to the owner LayoutView.

public PointF Location { get; }

Property Value

System.Drawing.PointF

Rect

Gets the owner LayoutRect object.

public LayoutRect Rect { get; }

Property Value

LayoutRect

TopOffset

Gets or sets the value to be added to the position of the Rect's top side.

public float TopOffset { get; set; }

Property Value

float

Transform

Gets the transformation matrix of the AnchorPoint taking into account the owner LayoutView transformation and the current position of the point.

public Matrix Transform { get; }

Property Value

Matrix

TransformedLocation

Gets the coordinates of the point relative to the LayoutHost.

public PointF TransformedLocation { get; }

Property Value

System.Drawing.PointF

View

Gets the owner LayoutView object.

public LayoutView View { get; }

Property Value

LayoutView

WidthFactor

Gets or sets the value to be multiplied by Width before adding to the position of the Rect's left side.

public float WidthFactor { get; set; }

Property Value

float

Methods

MapToRect(LayoutRect)

Transforms the location of AnchorPoint to the coordinate system of the targetRect.

public PointF MapToRect(LayoutRect targetRect)

Parameters

targetRect LayoutRect

A LayoutRect which defines the base angle and position.

Returns

System.Drawing.PointF

The transformed location.

MapToView(LayoutView)

Transforms the location of AnchorPoint to another view's coordinates.

public PointF MapToView(LayoutView targetView)

Parameters

targetView LayoutView

The destination LayoutView or null to reference the LayoutHost.

Returns

System.Drawing.PointF

The transformed location.