[]
Creates a Visual object that represents a drawing element.
public Visual CreateVisual(bool createRect = true)
Public Function CreateVisual(Optional createRect As Boolean = True) As Visual
| Type | Name | Description |
|---|---|---|
| bool | createRect | Indicates whether a new LayoutRect must be associated with the Visual. |
| Type | Description |
|---|---|
| Visual |
Creates a Visual object that represents a drawing element.
public Visual CreateVisual(int id, bool createRect = true)
Public Function CreateVisual(id As Integer, Optional createRect As Boolean = True) As Visual
| Type | Name | Description |
|---|---|---|
| int | id | A custom space ID. It must be positive and unique within the View. |
| bool | createRect | Indicates whether a new LayoutRect must be associated with the Visual. |
| Type | Description |
|---|---|
| Visual |
Creates a Visual object that represents a drawing element.
public Visual CreateVisual(Action<GcGraphics, Visual> draw)
Public Function CreateVisual(draw As Action(Of GcGraphics, Visual)) As Visual
| Type | Name | Description |
|---|---|---|
| Action<GcGraphics, Visual> | draw | A delegate that accepts a GcGraphics object and a Visual, and draws the visual on the graphics. |
| Type | Description |
|---|---|
| Visual |
public Visual CreateVisual(Contour contour, bool createRect)
Public Function CreateVisual(contour As Contour, createRect As Boolean) As Visual
| Type | Name | Description |
|---|---|---|
| Contour | contour | |
| bool | createRect | Indicates whether a new LayoutRect must be associated with the Visual. |
| Type | Description |
|---|---|
| Visual |
public Visual CreateVisual(Contour contour, bool createRect, Action<GcGraphics, Visual> draw)
Public Function CreateVisual(contour As Contour, createRect As Boolean, draw As Action(Of GcGraphics, Visual)) As Visual
| Type | Name | Description |
|---|---|---|
| Contour | contour | |
| bool | createRect | Indicates whether a new LayoutRect must be associated with the Visual. |
| Action<GcGraphics, Visual> | draw | A delegate that accepts a GcGraphics object and a Visual, and draws the visual on the graphics. |
| Type | Description |
|---|---|
| Visual |
Creates a Visual object that represents a polygon based on the given AnchorPoints.
public Visual CreateVisual(AnchorPoint[] anchorPoints)
Public Function CreateVisual(anchorPoints As AnchorPoint()) As Visual
| Type | Name | Description |
|---|---|---|
| AnchorPoint[] | anchorPoints | An array of AnchorPoints to draw. |
| Type | Description |
|---|---|
| Visual |
Creates a Visual object that represents a polygon based on the given AnchorPoints.
public Visual CreateVisual(AnchorPoint[] anchorPoints, Action<GcGraphics, Visual> draw)
Public Function CreateVisual(anchorPoints As AnchorPoint(), draw As Action(Of GcGraphics, Visual)) As Visual
| Type | Name | Description |
|---|---|---|
| AnchorPoint[] | anchorPoints | An array of AnchorPoints to draw. |
| Action<GcGraphics, Visual> | draw | A delegate that accepts a GcGraphics object and a Visual, and draws the visual on the graphics. |
| Type | Description |
|---|---|
| Visual |