[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.Composition.View

Class View

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

Represents a Layer with an associated LayoutView object and transformation.

public class View : Layer
Inheritance
object
View
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Height

Gets the height of the associated LayoutView.

public float Height { get; }

Property Value

float

LayoutView

Gets the associated LayoutView object.

public LayoutView LayoutView { get; }

Property Value

LayoutView

Transform

Gets the transformation matrix of the current View.

public Matrix Transform { get; }

Property Value

Matrix

Width

Gets the width of the associated LayoutView.

public float Width { get; }

Property Value

float

Methods

Detach()

Detaches this View from the owner Surface.

public override void Detach()

GetSpace(int)

Searches for a Space or View with the given space ID.

public Space GetSpace(int id)

Parameters

id int

The ID of the space to look for.

Returns

Space

The found Space or null.

ResetTransform()

Resets the transformation matrix to the base View transformation or to Identity.

public View ResetTransform()

Returns

View

Rotate(float)

Applies a rotation transformation.

public View Rotate(float degrees)

Parameters

degrees float

Angle of rotation, in degrees. Angles are measured clockwise when looking along the rotation axis.

Returns

View

Scale(float, float)

Applies a scaling transformation.

public View Scale(float xScaleFactor, float yScaleFactor)

Parameters

xScaleFactor float

The value to scale by on the X axis.

yScaleFactor float

The value to scale by on the Y axis.

Returns

View

Scale(float)

Applies a scaling transformation.

public View Scale(float scaleFactor)

Parameters

scaleFactor float

The value to scale by on the X and Y axes.

Returns

View

SetTransform(Matrix)

Assigns a transformation matrix to this View relative to the Surface or the base View.

public void SetTransform(Matrix transform)

Parameters

transform Matrix

Skew(float, float)

Applies a skew transformation.

public View Skew(float degreesX, float degreesY)

Parameters

degreesX float

The X angle, in degrees.

degreesY float

The Y angle, in degrees.

Returns

View

Translate(float, float)

Applies a translation transformation.

public View Translate(float xPosition, float yPosition)

Parameters

xPosition float

The X position.

yPosition float

The Y position.

Returns

View