[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.Composition.Visual

Class Visual

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

Represents a figure, text, or image on a Layer.

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

Properties

AnchorPoints

Gets or sets the associated array of AnchorPoint objects.

Either Contour or AnchorPoints can be assigned at the same time, but not both.

public AnchorPoint[] AnchorPoints { get; set; }

Property Value

AnchorPoint[]
See Also

Contour

Gets or sets an associated Contour object.

Either Contour or AnchorPoints can be assigned at the same time, but not both.

public Contour Contour { get; set; }

Property Value

Contour
See Also

Draw

Gets or sets a delegate that accepts a GcGraphics object and a Visual and draws the visual on the graphics.

public Action<GcGraphics, Visual> Draw { get; set; }

Property Value

System.Action<T1, T2><GcGraphics, Visual>

Height

Get the height of the associated LayoutRect if any exists, or of the owner LayoutView.

public float Height { get; }

Property Value

float

Points

Gets the array of points transformed relative to the associated LayoutRect if any exists, or relative to the owner LayoutView.

public PointF[] Points { get; }

Property Value

System.Drawing.PointF[]

Visible

Gets or sets a value indicating whether this Visual is visible.

public bool Visible { get; set; }

Property Value

bool

VisualAbove

Gets the Visual that appears on top of the current Visual.

public Visual VisualAbove { get; }

Property Value

Visual

VisualBelow

Gets the Visual that appears below the current Visual.

public Visual VisualBelow { get; }

Property Value

Visual

Width

Get the width of the associated LayoutRect if any exists, or of the owner LayoutView.

public float Width { get; }

Property Value

float

Methods

AsRectF()

Creates a System.Drawing.RectangleF with the same Width and Height as this Visual.

public RectangleF AsRectF()

Returns

System.Drawing.RectangleF

BringToFront()

Moves the Visual to the front. It becomes the top Visual on the owner Layer.

public void BringToFront()

Detach()

Detaches this Visual from the owner Layer.

public override void Detach()

MoveAbove(Visual)

Moves this Visual to the position on top of the specified visual.

public void MoveAbove(Visual visual)

Parameters

visual Visual

MoveBelow(Visual)

Moves this Visual to the position below the specified visual.

public void MoveBelow(Visual visual)

Parameters

visual Visual

SendToBack()

Moves this Visual to the back. It becomes the bottom Visual on the owner Layer.

public void SendToBack()