C# Class Core2D.Project.XContainer

Container base class.
Inheritance: XSelectable
Mostrar archivo Open project: Core2D/Core2D Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
CreatePage ( string name = "Page" ) : XContainer

Creates a new XContainer page instance.

CreateTemplate ( string name = "Template", double width = 840, double height = 600 ) : XContainer

Creates a new XContainer template instance.

Invalidate ( ) : void

Invalidate container layers.

SetCurrentLayer ( XLayer layer ) : void

Set current layer.

XContainer ( ) : System.Collections.Immutable

Initializes a new instance of the XContainer class.

this ( string name ) : string

Gets or sets property Value using Name as key for data Properties array values.

If property with the specified key does not exist it is created.

Method Details

CreatePage() public static method

Creates a new XContainer page instance.
public static CreatePage ( string name = "Page" ) : XContainer
name string The page name.
return XContainer

CreateTemplate() public static method

Creates a new XContainer template instance.
public static CreateTemplate ( string name = "Template", double width = 840, double height = 600 ) : XContainer
name string The template name.
width double The template width.
height double The template height.
return XContainer

Invalidate() public method

Invalidate container layers.
public Invalidate ( ) : void
return void

SetCurrentLayer() public method

Set current layer.
public SetCurrentLayer ( XLayer layer ) : void
layer XLayer The layer instance.
return void

XContainer() public method

Initializes a new instance of the XContainer class.
public XContainer ( ) : System.Collections.Immutable
return System.Collections.Immutable

this() public method

Gets or sets property Value using Name as key for data Properties array values.
If property with the specified key does not exist it is created.
public this ( string name ) : string
name string The property name value.
return string