[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.Composition.Layer.CreateSubView

CreateSubView Method

CreateSubView(float, float)

Creates a nested View object and adds it on top of other nested layers.

Declaration
public View CreateSubView(float width, float height)
Public Function CreateSubView(width As Single, height As Single) As View
Parameters
Type Name Description
float width

The width of the LayoutView rectangle.

float height

The height of the LayoutView rectangle.

Returns
Type Description
View

CreateSubView(float, float, Action<GcGraphics, Layer>)

Creates a nested View object and adds it on top of other nested layers.

Declaration
public View CreateSubView(float width, float height, Action<GcGraphics, Layer> draw)
Public Function CreateSubView(width As Single, height As Single, draw As Action(Of GcGraphics, Layer)) As View
Parameters
Type Name Description
float width

The width of the LayoutView rectangle.

float height

The height of the LayoutView rectangle.

Action<GcGraphics, Layer> draw

A delegate that accepts a GcGraphics object and a Layer, and draws the layer on the graphics.

Returns
Type Description
View