C# Class Dynamo.Graph.Annotations.AnnotationModel

Inheritance: ModelBase
Show file Open project: DynamoDS/Dynamo Class Usage Examples

Public Properties

Property Type Description
GroupBackground string

Public Methods

Method Description
AnnotationModel ( IEnumerable nodes, IEnumerable notes ) : System

Initializes a new instance of the AnnotationModel class.

Deselect ( ) : void

Overriding the Deselect behavior because deselecting the group should deselect the models within that group

Dispose ( ) : void

Implementation of Dispose method

Select ( ) : void

Overriding the Select behavior because selecting the group should select the models within that group

Protected Methods

Method Description
DeserializeCore ( XmlElement element, SaveContext context ) : void
SerializeCore ( XmlElement element, SaveContext context ) : void
UpdateValueCore ( UpdateValueParams updateValueParams ) : bool

Private Methods

Method Description
AddToSelectedModels ( ModelBase model, bool checkOverlap = false ) : void

This is called when a model is deleted from a group and UNDO is clicked.

CalculateWidthAndHeight ( ) : Double>.Tuple

Group the Models based on Height and Width

CheckModelIsInsideGroup ( ModelBase model, bool checkOverlap ) : bool
UpdateBoundaryFromSelection ( ) : void

Updates the group boundary based on the nodes / notes selection.

model_Disposed ( ModelBase model ) : void

Recalculate the group when a node is disposed

model_PropertyChanged ( object sender, System e ) : void

Method Details

AnnotationModel() public method

Initializes a new instance of the AnnotationModel class.
public AnnotationModel ( IEnumerable nodes, IEnumerable notes ) : System
nodes IEnumerable The nodes.
notes IEnumerable The notes.
return System

Deselect() public method

Overriding the Deselect behavior because deselecting the group should deselect the models within that group
public Deselect ( ) : void
return void

DeserializeCore() protected method

protected DeserializeCore ( XmlElement element, SaveContext context ) : void
element System.Xml.XmlElement
context SaveContext
return void

Dispose() public method

Implementation of Dispose method
public Dispose ( ) : void
return void

Select() public method

Overriding the Select behavior because selecting the group should select the models within that group
public Select ( ) : void
return void

SerializeCore() protected method

protected SerializeCore ( XmlElement element, SaveContext context ) : void
element System.Xml.XmlElement
context SaveContext
return void

UpdateValueCore() protected method

protected UpdateValueCore ( UpdateValueParams updateValueParams ) : bool
updateValueParams UpdateValueParams
return bool

Property Details

GroupBackground public property

Returns default background of the group
public string GroupBackground
return string