Class PropertyEditor
This control displays and edits properties of objects in a m_diagram.
Inheritance
Namespace: Syncfusion.Windows.Forms.Diagram.Controls
Assembly: Syncfusion.Diagram.Windows.dll
Syntax
public class PropertyEditor : Panel
Remarks
This control contains an embedded System.Windows.Forms.PropertyGrid that is used to edit objects in a m_diagram. The Syncfusion.Windows.Forms.Diagram.Controls.PropertyEditor.m_diagram contains a reference to a Diagram object that the property editor is attached to. Once it is attached to a m_diagram, the property editor automatically displays the currently selected object in the m_diagram.
DiagramConstructors
PropertyEditor()
Initializes a new instance of the PropertyEditor class.
Declaration
public PropertyEditor()
PropertyEditor(IContainer)
Initializes a new instance of the PropertyEditor class.
Declaration
public PropertyEditor(IContainer container)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.IContainer | container | The container. |
Properties
Diagram
Gets or sets the Diagram which should be attached to the property editor.
Declaration
public Diagram Diagram { get; set; }
Property Value
Type |
---|
Diagram |
Remarks
This property contains a reference to the m_diagram that this property editor is attached to. The property editor receives events from the m_diagram when the current selection changes and it updates the currently displayed object in the property editor.
PropertyGrid
Gets reference to the PropertyGrid object contained by this property editor.
Declaration
public PropertyGrid PropertyGrid { get; }
Property Value
Type |
---|
System.Windows.Forms.PropertyGrid |
ShowCombo
Gets or sets a value indicating whether combobox is shown.
Declaration
public bool ShowCombo { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
PropertyGrid_PropertyValueChanged(Object, PropertyValueChangedEventArgs)
Declaration
protected virtual void PropertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | s | |
System.Windows.Forms.PropertyValueChangedEventArgs | e |
SetSelectedObject(Node)
Select the node in the property grid.
Declaration
public void SetSelectedObject(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | Node to display in the property editor. |
SetSelectedObjects(NodeCollection)
Selects the list of nodes in the property grid.
Declaration
public void SetSelectedObjects(NodeCollection nodes)
Parameters
Type | Name | Description |
---|---|---|
NodeCollection | nodes | Nodes to display in the property editor. |