Class ContextualGraphLayout<TVertex, TEdge, TGraph>
Contextual Graph layout control.
Inheritance
System.Object
GraphLayout<TVertex, TEdge, TGraph>
ContextualGraphLayout<TVertex, TEdge, TGraph>
Inherited Members
Namespace: GraphShape.Controls
Assembly: GraphShape.Controls.dll
Syntax
public class ContextualGraphLayout<TVertex, TEdge, TGraph> : GraphLayout<TVertex, TEdge, TGraph> where TVertex : class where TEdge : IEdge<TVertex> where TGraph : class, IBidirectionalGraph<TVertex, TEdge>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TEdge | Edge type. |
TGraph | Graph type. |
Fields
| Improve this Doc View SourceSelectedVertexProperty
Selected vertex dependency property.
Declaration
public static readonly DependencyProperty SelectedVertexProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceCanLayout
Indicates if layout can be done.
Declaration
protected override bool CanLayout { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
GraphShape.Controls.GraphLayout<TVertex, TEdge, TGraph>.CanLayout
|
Improve this Doc
View Source
SelectedVertex
Gets or sets the SelectedVertex which influences the context.
Declaration
public TVertex SelectedVertex { get; set; }
Property Value
Type | Description |
---|---|
TVertex |
Methods
| Improve this Doc View SourceCreateLayoutContext(IDictionary<TVertex, Point>, IDictionary<TVertex, Size>)
Creates a
Declaration
protected override ILayoutContext<TVertex, TEdge, TGraph> CreateLayoutContext(IDictionary<TVertex, Point> positions, IDictionary<TVertex, Size> sizes)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<TVertex, Point> | positions | Vertices positions. |
IDictionary<TVertex, Size> | sizes | Vertices sizes. |
Returns
Type | Description |
---|---|
ILayoutContext<TVertex, TEdge, TGraph> | Created |
Overrides
GraphShape.Controls.GraphLayout<TVertex, TEdge, TGraph>.CreateLayoutContext(IDictionary<TVertex, Point>, IDictionary<TVertex, Size>)
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|