Creates a GwxPolygon object.

Namespace: Ico.Gwx
Assembly: GwxConfigCore (in GwxConfigCore.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public static GwxPolygon Create(
	GwxConfiguration config,
	Rect dimensions,
	IGwxElementContainer parentElement,
	bool selectAfterCreate,
	GwxElement initializePropertiesFrom
)
Visual Basic
Public Shared Function Create ( _
	config As GwxConfiguration, _
	dimensions As Rect, _
	parentElement As IGwxElementContainer, _
	selectAfterCreate As Boolean, _
	initializePropertiesFrom As GwxElement _
) As GwxPolygon
JScript
public static function Create(
	config : GwxConfiguration, 
	dimensions : Rect, 
	parentElement : IGwxElementContainer, 
	selectAfterCreate : boolean, 
	initializePropertiesFrom : GwxElement
) : GwxPolygon

Parameters

config
Type: Ico.Gwx..::..GwxConfiguration
The GwxConfiguration object that owns the new object.
dimensions
Type: System.Windows..::..Rect
The rectangular dimensions of the new object.
parentElement
Type: Ico.Gwx..::..IGwxElementContainer
The IGwxElementContainer that will be the parent of the new object.
selectAfterCreate
Type: System..::..Boolean
True to make the newly created object selected.
initializePropertiesFrom
Type: Ico.Gwx..::..GwxElement
Optional GwxElement used to initialize the properties of the new object. If null, properties will be initialized to their default values.

Return Value

The newly created object.

See Also