Creates a new GwxElement using the specified parameters.

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

Syntax

C#
public GwxElement CreateObject(
	Visual newVisual,
	Rect dimensions,
	IGwxElementContainer parentElement,
	bool selectAfterCreate,
	GwxElement initializePropertiesFrom
)
Visual Basic
Public Function CreateObject ( _
	newVisual As Visual, _
	dimensions As Rect, _
	parentElement As IGwxElementContainer, _
	selectAfterCreate As Boolean, _
	initializePropertiesFrom As GwxElement _
) As GwxElement
JScript
public function CreateObject(
	newVisual : Visual, 
	dimensions : Rect, 
	parentElement : IGwxElementContainer, 
	selectAfterCreate : boolean, 
	initializePropertiesFrom : GwxElement
) : GwxElement

Parameters

newVisual
Type: System.Windows.Media..::..Visual
A visual to be wrapped by the new GwxElement instance.
dimensions
Type: System.Windows..::..Rect
The initial dimensions of the object. Specify Empty to skip initialization of dimensions.
parentElement
Type: Ico.Gwx..::..IGwxElementContainer
The element that will be the parent of the new object.
selectAfterCreate
Type: System..::..Boolean
True to initially select the newly created object.
initializePropertiesFrom
Type: Ico.Gwx..::..GwxElement
Object from which to copy initial property values (may be null).

Return Value

The newly create GwxElement object.

See Also