File tree Expand file tree Collapse file tree
Server/Pages/Connectors/Segments
Wasm/Pages/Connectors/Segments Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33@using Syncfusion .Blazor .Diagram
44
5- <SfDiagramComponent Width =" 1000px" Height =" 500px" Connectors =" @connectors " >
5+ <SfDiagramComponent Width =" 1000px" Height =" 500px" Connectors =" @_connectors " >
66 <SnapSettings Constraints =" SnapConstraints.None" ></SnapSettings >
77</SfDiagramComponent >
88
99@code
1010{
1111 // Defines diagram's connector collection.
12- private DiagramObjectCollection <Connector > connectors = new DiagramObjectCollection <Connector >();
12+ private DiagramObjectCollection <Connector > _connectors = new DiagramObjectCollection <Connector >();
1313
1414 protected override void OnInitialized ()
1515 {
4040 },
4141 };
4242 // Add the connector into connectors' collection.
43- connectors .Add (connector1 );
43+ _connectors .Add (connector1 );
4444 }
4545}
Original file line number Diff line number Diff line change 22
33@using Syncfusion .Blazor .Diagram
44
5- <SfDiagramComponent Width =" 1000px" Height =" 500px" Connectors =" @connectors " >
5+ <SfDiagramComponent Width =" 1000px" Height =" 500px" Connectors =" @_connectors " >
66</SfDiagramComponent >
77
88@code
99{
1010 // Defines diagram's connector collection.
11- private DiagramObjectCollection <Connector > connectors = new DiagramObjectCollection <Connector >();
11+ private DiagramObjectCollection <Connector > _connectors = new DiagramObjectCollection <Connector >();
1212
1313 protected override void OnInitialized ()
1414 {
15- Connector Connector = new Connector ()
15+ Connector connector = new Connector ()
1616 {
1717 ID = " connector1" ,
1818 SourcePoint = new DiagramPoint ()
3535 }
3636 }
3737 };
38- connectors .Add (Connector );
38+ _connectors .Add (connector );
3939 }
4040}
Original file line number Diff line number Diff line change 22
33@using Syncfusion .Blazor .Diagram
44
5- <SfDiagramComponent @ref =" Diagram " Width =" 1000px" Height =" 500px" Connectors =" @connectors " >
5+ <SfDiagramComponent @ref =" _diagram " Width =" 1000px" Height =" 500px" Connectors =" @_connectors " >
66</SfDiagramComponent >
77
88@code
99{
1010 // Reference the diagram
11- private SfDiagramComponent Diagram ;
11+ private SfDiagramComponent _diagram ;
1212 // Initialize the diagram's node collection.
13- private DiagramObjectCollection <Connector > connectors = new DiagramObjectCollection <Connector >();
13+ private DiagramObjectCollection <Connector > _connectors = new DiagramObjectCollection <Connector >();
1414
1515 protected override void OnInitialized ()
1616 {
1717 // Enable the segment editing.
18- Connector Connector = new Connector ()
18+ Connector connector = new Connector ()
1919 {
2020 ID = " Connector2" ,
2121 Constraints = ConnectorConstraints .Default | ConnectorConstraints .DragSegmentThumb ,
2222 Type = ConnectorSegmentType .Orthogonal ,
2323 SourcePoint = new DiagramPoint { X = 400 , Y = 100 },
2424 TargetPoint = new DiagramPoint { X = 500 , Y = 200 }
2525 };
26- connectors .Add (Connector );
26+ _connectors .Add (connector );
2727 }
2828}
Original file line number Diff line number Diff line change 22
33@using Syncfusion .Blazor .Diagram
44
5- <SfDiagramComponent @ref =" Diagram " Width =" 1000px" Height =" 500px" Connectors =" @connectors " ConnectorSegmentThumb =" @segmentThumbSettings " >
5+ <SfDiagramComponent @ref =" _diagram " Width =" 1000px" Height =" 500px" Connectors =" @_connectors " ConnectorSegmentThumb =" @_segmentThumbSettings " >
66</SfDiagramComponent >
77
88@code
99{
10- private SfDiagramComponent Diagram ;
11- private DiagramObjectCollection <Connector > connectors = new DiagramObjectCollection <Connector >();
12- private SegmentThumbSettings segmentThumbSettings = new SegmentThumbSettings () { Shape = SegmentThumbShapes .Fletch };
10+ private SfDiagramComponent _diagram ;
11+ private DiagramObjectCollection <Connector > _connectors = new DiagramObjectCollection <Connector >();
12+ private SegmentThumbSettings _segmentThumbSettings = new SegmentThumbSettings () { Shape = SegmentThumbShapes .Fletch };
1313
1414 protected override void OnInitialized ()
1515 {
16- Connector Connector = new Connector ()
16+ Connector connector = new Connector ()
1717 {
1818 ID = " Connector2" ,
1919 Constraints = ConnectorConstraints .Default | ConnectorConstraints .DragSegmentThumb | ConnectorConstraints .InheritSegmentThumbShape ,
2020 Type = ConnectorSegmentType .Orthogonal ,
2121 SourcePoint = new DiagramPoint { X = 400 , Y = 100 },
2222 TargetPoint = new DiagramPoint { X = 500 , Y = 200 }
2323 };
24- connectors .Add (Connector );
24+ _connectors .Add (connector );
2525 }
2626}
Original file line number Diff line number Diff line change 22
33@using Syncfusion .Blazor .Diagram
44
5- <SfDiagramComponent @ref =" Diagram " Width =" 1000px" Height =" 500px" Connectors =" @connectors " >
5+ <SfDiagramComponent @ref =" _diagram " Width =" 1000px" Height =" 500px" Connectors =" @_connectors " >
66</SfDiagramComponent >
77
88@code
99{
10- private SfDiagramComponent Diagram ;
11- private DiagramObjectCollection <Connector > connectors = new DiagramObjectCollection <Connector >();
10+ private SfDiagramComponent _diagram ;
11+ private DiagramObjectCollection <Connector > _connectors = new DiagramObjectCollection <Connector >();
1212
1313 protected override void OnInitialized ()
1414 {
15- Connector Connector = new Connector ()
15+ Connector connector = new Connector ()
1616 {
1717 ID = " Connector2" ,
1818 Constraints = ConnectorConstraints .Default | ConnectorConstraints .DragSegmentThumb ,
2121 TargetPoint = new DiagramPoint { X = 500 , Y = 200 },
2222 SegmentThumbSettings = new SegmentThumbSettings () { Shape = SegmentThumbShapes .IndentedArrow }
2323 };
24- connectors .Add (Connector );
24+ _connectors .Add (connector );
2525 }
2626}
Original file line number Diff line number Diff line change 22
33@using Syncfusion .Blazor .Diagram
44
5- <SfDiagramComponent Width =" 1000px" Height =" 500px" Connectors =" @connectors " >
5+ <SfDiagramComponent Width =" 1000px" Height =" 500px" Connectors =" @_connectors " >
66 <SnapSettings Constraints =" SnapConstraints.None" ></SnapSettings >
77</SfDiagramComponent >
88
99@code
1010{
1111 // Defines diagram's connector collection.
12- private DiagramObjectCollection <Connector > connectors = new DiagramObjectCollection <Connector >();
12+ private DiagramObjectCollection <Connector > _connectors = new DiagramObjectCollection <Connector >();
1313
1414 protected override void OnInitialized ()
1515 {
4040 },
4141 };
4242 // Add the connector into connectors' collection.
43- connectors .Add (connector1 );
43+ _connectors .Add (connector1 );
4444 }
4545}
Original file line number Diff line number Diff line change 22
33@using Syncfusion .Blazor .Diagram
44
5- <SfDiagramComponent Width =" 1000px" Height =" 500px" Connectors =" @connectors " >
5+ <SfDiagramComponent Width =" 1000px" Height =" 500px" Connectors =" @_connectors " >
66</SfDiagramComponent >
77
88@code
99{
1010 // Defines diagram's connector collection.
11- private DiagramObjectCollection <Connector > connectors = new DiagramObjectCollection <Connector >();
11+ private DiagramObjectCollection <Connector > _connectors = new DiagramObjectCollection <Connector >();
1212
1313 protected override void OnInitialized ()
1414 {
15- Connector Connector = new Connector ()
15+ Connector connector = new Connector ()
1616 {
1717 ID = " connector1" ,
1818 SourcePoint = new DiagramPoint ()
3535 }
3636 }
3737 };
38- connectors .Add (Connector );
38+ _connectors .Add (connector );
3939 }
4040}
Original file line number Diff line number Diff line change 22
33@using Syncfusion .Blazor .Diagram
44
5- <SfDiagramComponent @ref =" Diagram " Width =" 1000px" Height =" 500px" Connectors =" @connectors " >
5+ <SfDiagramComponent @ref =" _diagram " Width =" 1000px" Height =" 500px" Connectors =" @_connectors " >
66</SfDiagramComponent >
77
88@code
99{
1010 // Reference the diagram
11- private SfDiagramComponent Diagram ;
11+ private SfDiagramComponent _diagram ;
1212 // Initialize the diagram's node collection.
13- private DiagramObjectCollection <Connector > connectors = new DiagramObjectCollection <Connector >();
13+ private DiagramObjectCollection <Connector > _connectors = new DiagramObjectCollection <Connector >();
1414
1515 protected override void OnInitialized ()
1616 {
1717 // Enable the segment editing.
18- Connector Connector = new Connector ()
18+ Connector connector = new Connector ()
1919 {
2020 ID = " Connector2" ,
2121 Constraints = ConnectorConstraints .Default | ConnectorConstraints .DragSegmentThumb ,
2222 Type = ConnectorSegmentType .Orthogonal ,
2323 SourcePoint = new DiagramPoint { X = 400 , Y = 100 },
2424 TargetPoint = new DiagramPoint { X = 500 , Y = 200 }
2525 };
26- connectors .Add (Connector );
26+ _connectors .Add (connector );
2727 }
2828}
Original file line number Diff line number Diff line change 22
33@using Syncfusion .Blazor .Diagram
44
5- <SfDiagramComponent @ref =" Diagram " Width =" 1000px" Height =" 500px" Connectors =" @connectors " ConnectorSegmentThumb =" @segmentThumbSettings " >
5+ <SfDiagramComponent @ref =" _diagram " Width =" 1000px" Height =" 500px" Connectors =" @_connectors " ConnectorSegmentThumb =" @_segmentThumbSettings " >
66</SfDiagramComponent >
77
88@code
99{
10- private SfDiagramComponent Diagram ;
11- private DiagramObjectCollection <Connector > connectors = new DiagramObjectCollection <Connector >();
12- private SegmentThumbSettings segmentThumbSettings = new SegmentThumbSettings () { Shape = SegmentThumbShapes .Fletch };
10+ private SfDiagramComponent _diagram ;
11+ private DiagramObjectCollection <Connector > _connectors = new DiagramObjectCollection <Connector >();
12+ private SegmentThumbSettings _segmentThumbSettings = new SegmentThumbSettings () { Shape = SegmentThumbShapes .Fletch };
1313
1414 protected override void OnInitialized ()
1515 {
16- Connector Connector = new Connector ()
16+ Connector connector = new Connector ()
1717 {
1818 ID = " Connector2" ,
1919 Constraints = ConnectorConstraints .Default | ConnectorConstraints .DragSegmentThumb | ConnectorConstraints .InheritSegmentThumbShape ,
2020 Type = ConnectorSegmentType .Orthogonal ,
2121 SourcePoint = new DiagramPoint { X = 400 , Y = 100 },
2222 TargetPoint = new DiagramPoint { X = 500 , Y = 200 }
2323 };
24- connectors .Add (Connector );
24+ _connectors .Add (connector );
2525 }
2626}
Original file line number Diff line number Diff line change 22
33@using Syncfusion .Blazor .Diagram
44
5- <SfDiagramComponent @ref =" Diagram " Width =" 1000px" Height =" 500px" Connectors =" @connectors " >
5+ <SfDiagramComponent @ref =" _diagram " Width =" 1000px" Height =" 500px" Connectors =" @_connectors " >
66</SfDiagramComponent >
77
88@code
99{
10- private SfDiagramComponent Diagram ;
11- private DiagramObjectCollection <Connector > connectors = new DiagramObjectCollection <Connector >();
10+ private SfDiagramComponent _diagram ;
11+ private DiagramObjectCollection <Connector > _connectors = new DiagramObjectCollection <Connector >();
1212
1313 protected override void OnInitialized ()
1414 {
15- Connector Connector = new Connector ()
15+ Connector connector = new Connector ()
1616 {
1717 ID = " Connector2" ,
1818 Constraints = ConnectorConstraints .Default | ConnectorConstraints .DragSegmentThumb ,
2121 TargetPoint = new DiagramPoint { X = 500 , Y = 200 },
2222 SegmentThumbSettings = new SegmentThumbSettings () { Shape = SegmentThumbShapes .IndentedArrow }
2323 };
24- connectors .Add (Connector );
24+ _connectors .Add (connector );
2525 }
2626}
You can’t perform that action at this time.
0 commit comments