diff --git a/blazor/diagram/annotations/appearance.md b/blazor/diagram/annotations/appearance.md
index 24f1c833d6..18f15b3b69 100644
--- a/blazor/diagram/annotations/appearance.md
+++ b/blazor/diagram/annotations/appearance.md
@@ -15,14 +15,14 @@ The annotation size can be customized using the [Height](https://help.syncfusion
```cshtml
@using Syncfusion.Blazor.Diagram
-
+
@code
{
// Defines diagram's connector collection.
- DiagramObjectCollection connectors;
+ DiagramObjectCollection _connectors;
protected override void OnInitialized()
{
- connectors = new DiagramObjectCollection();
+ _connectors = new DiagramObjectCollection();
Connector connector = new Connector()
{
SourcePoint = new DiagramPoint() { X = 300, Y = 40 },
@@ -40,13 +40,13 @@ The annotation size can be customized using the [Height](https://help.syncfusion
},
}
};
- connectors.Add(connector);
+ _connectors.Add(connector);
}
}
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/VXByCtXxVTAfPZsm?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
-A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Annotations/Appearance/SizeOfAnnotation)
+A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-UG-Examples/blob/master/Diagram/Server/Pages/Annotations/SizeOfAnnotation.razor)

@@ -57,16 +57,16 @@ A [Hyperlink](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.An
```cshtml
@using Syncfusion.Blazor.Diagram
-
+
@code
{
// Defines diagram's node collection.
- DiagramObjectCollection nodes;
+ DiagramObjectCollection _nodes;
protected override void OnInitialized()
{
- nodes = new DiagramObjectCollection();
+ _nodes = new DiagramObjectCollection();
Node node = new Node()
{
ID = "node",
@@ -88,13 +88,13 @@ A [Hyperlink](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.An
},
Style = new ShapeStyle() { Fill = "#6495ED", StrokeColor = "white" },
};
- nodes.Add(node);
+ _nodes.Add(node);
}
}
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/VNBIWtDRBTaSnpxq?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
-A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Annotations/Appearance/HyperlinktoAnnotation)
+A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-UG-Examples/blob/master/Diagram/Server/Pages/Annotations/HyperLinktoAnnotation.razor)

@@ -105,16 +105,16 @@ The [Content](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.An
```cshtml
@using Syncfusion.Blazor.Diagram
-
+
@code
{
// Defines diagram's node collection.
- DiagramObjectCollection nodes;
+ DiagramObjectCollection _nodes;
protected override void OnInitialized()
{
- nodes = new DiagramObjectCollection();
+ _nodes = new DiagramObjectCollection();
Node node = new Node()
{
ID = "node",
@@ -137,13 +137,13 @@ The [Content](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.An
},
Style = new ShapeStyle() { Fill = "#6495ED", StrokeColor = "white" },
};
- nodes.Add(node);
+ _nodes.Add(node);
}
}
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/BtLoMXNRrIZKmISV?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
-A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Annotations/Appearance/HyperlinkWithContent)
+A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-UG-Examples/blob/master/Diagram/Server/Pages/Annotations/HyperLinkWithContent.razor)

@@ -154,16 +154,16 @@ The [TextWrapping](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagr
```cshtml
@using Syncfusion.Blazor.Diagram
-
+
@code
{
// Defines diagram's node collection.
- DiagramObjectCollection nodes;
+ DiagramObjectCollection _nodes;
protected override void OnInitialized()
{
- nodes = new DiagramObjectCollection();
+ _nodes = new DiagramObjectCollection();
Node node = new Node()
{
ID = "node",
@@ -186,13 +186,13 @@ The [TextWrapping](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagr
},
Style = new ShapeStyle() { Fill = "#6495ED", StrokeColor = "white" },
};
- nodes.Add(node);
+ _nodes.Add(node);
}
}
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/rthoiXDdVIsShZlW?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
-A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Annotations/Appearance/AnnotationWithTextWrapping)
+A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-UG-Examples/blob/master/Diagram/Server/Pages/Annotations/AnnotationWithTextWrapping.razor)
| TextWrapping | Description | Image |
| -------- | -------- | -------- |
@@ -213,16 +213,16 @@ The following code sample demonstrates how the `TextOverflow` property works wit
```cshtml
@using Syncfusion.Blazor.Diagram
-
+
@code
{
// Defines diagram's node collection.
- DiagramObjectCollection nodes;
+ DiagramObjectCollection _nodes;
protected override void OnInitialized()
{
- nodes = new DiagramObjectCollection();
+ _nodes = new DiagramObjectCollection();
Node node = new Node()
{
ID = "node",
@@ -246,13 +246,13 @@ The following code sample demonstrates how the `TextOverflow` property works wit
},
Style = new ShapeStyle() { Fill = "#6495ED", StrokeColor = "white" },
};
- nodes.Add(node);
+ _nodes.Add(node);
}
}
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/rjVoCXtHLSBncEEM?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
-A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Annotations/Appearance/AnnotationWithTextOverflow)
+A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-UG-Examples/blob/master/Diagram/Server/Pages/Annotations/AnnotationWithTextOverflow.razor)
| TextOverflow | Wrapping | Image |
| -------- | -------- | -------- |
@@ -285,16 +285,16 @@ The following code explains how to customize the visual appearance of an annotat
```cshtml
@using Syncfusion.Blazor.Diagram
-
+
@code
{
// Defines diagram's node collection.
- DiagramObjectCollection nodes;
+ DiagramObjectCollection _nodes;
protected override void OnInitialized()
{
- nodes = new DiagramObjectCollection();
+ _nodes = new DiagramObjectCollection();
Node node = new Node()
{
ID = "node",
@@ -322,13 +322,13 @@ The following code explains how to customize the visual appearance of an annotat
},
Style = new ShapeStyle() { Fill = "#6BA5D7", StrokeColor = "white" },
};
- nodes.Add(node);
+ _nodes.Add(node);
}
}
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/hNBSMtXHByUvlGFt?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
-A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Annotations/Appearance/Appearance)
+A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-UG-Examples/blob/master/Diagram/Server/Pages/Annotations/Appearance.razor)

@@ -343,19 +343,19 @@ The font style of annotations can be changed dynamically at runtime by modifying
-
+
@code
{
// Reference of the diagram.
- SfDiagramComponent Diagram;
+ SfDiagramComponent _diagram;
// Defines diagram's node collection.
- DiagramObjectCollection nodes;
+ DiagramObjectCollection _nodes;
protected override void OnInitialized()
{
- nodes = new DiagramObjectCollection();
+ _nodes = new DiagramObjectCollection();
Node node = new Node()
{
ID = "node1",
@@ -382,23 +382,23 @@ The font style of annotations can be changed dynamically at runtime by modifying
},
Style = new ShapeStyle() { Fill = "#6BA5D7", StrokeColor = "white" },
};
- nodes.Add(node);
+ _nodes.Add(node);
}
public void UpdateStyle()
{
// Change the style of the annotation.
- Diagram.BeginUpdate();
- Diagram.Nodes[0].Annotations[0].Style.Bold = false;
- Diagram.Nodes[0].Annotations[0].Style.TextDecoration = TextDecoration.None;
- Diagram.Nodes[0].Annotations[0].Style.Color = "Red";
- Diagram.EndUpdateAsync();
+ _diagram.BeginUpdate();
+ _diagram.Nodes[0].Annotations[0].Style.Bold = false;
+ _diagram.Nodes[0].Annotations[0].Style.TextDecoration = TextDecoration.None;
+ _diagram.Nodes[0].Annotations[0].Style.Color = "Red";
+ _Diagram.EndUpdateAsync();
}
}
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/BZLSMXXHLypEIAGt?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
-A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Annotations/Appearance/AnnotationStyleatRunTime)
+A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-UG-Examples/blob/master/Diagram/Server/Pages/Annotations/AnnotationStyleAtRunTime.razor)
## How to Edit Annotations at Runtime
@@ -418,16 +418,16 @@ Annotations can be set to read-only mode by configuring their [Constraints](http
```cshtml
@using Syncfusion.Blazor.Diagram
-
+
@code
{
// Defines diagram's node collection.
- DiagramObjectCollection nodes;
+ DiagramObjectCollection _nodes;
protected override void OnInitialized()
{
- nodes = new DiagramObjectCollection();
+ _nodes = new DiagramObjectCollection();
Node node = new Node()
{
ID = "node",
@@ -446,13 +446,13 @@ Annotations can be set to read-only mode by configuring their [Constraints](http
},
Style = new ShapeStyle() { Fill = "#6BA5D7", StrokeColor = "white" },
};
- nodes.Add(node);
+ _nodes.Add(node);
}
}
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/BZrIWjtxBeoSmkMG?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
-A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Annotations/Appearance/ReaonlyConstraints)
+A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-UG-Examples/blob/master/Diagram/Server/Pages/Annotations/ReadonlyConstraints.razor)
## How to Create Multiple Annotations
@@ -461,19 +461,19 @@ Multiple annotations can be added to a single node or connector. The following c
```cshtml
@using Syncfusion.Blazor.Diagram
-
+
@code
{
// Defines diagram's node collection.
- DiagramObjectCollection nodes;
+ DiagramObjectCollection _nodes;
// Defines diagram's connector collection.
- DiagramObjectCollection connectors;
+ DiagramObjectCollection _connectors;
protected override void OnInitialized()
{
- nodes = new DiagramObjectCollection();
+ _nodes = new DiagramObjectCollection();
Node node = new Node()
{
ID = "node",
@@ -502,8 +502,8 @@ Multiple annotations can be added to a single node or connector. The following c
}
},
};
- nodes.Add(node);
- connectors = new DiagramObjectCollection();
+ _nodes.Add(node);
+ _connectors = new DiagramObjectCollection();
Connector connector = new Connector()
{
SourcePoint = new DiagramPoint() { X = 300, Y = 40 },
@@ -529,13 +529,13 @@ Multiple annotations can be added to a single node or connector. The following c
},
}
};
- connectors.Add(connector);
+ _connectors.Add(connector);
}
}
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/VZLoMZtHrSEKMWRQ?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
-A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Annotations/Appearance/MultipleAnnotation)
+A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-UG-Examples/blob/master/Diagram/Server/Pages/Annotations/MultipleAnnotation.razor)

@@ -568,7 +568,7 @@ The following code illustrates how to define a template for both a node's and a
```cshtml
@using Syncfusion.Blazor.Diagram
-
+
@@ -576,8 +576,8 @@ The following code illustrates how to define a template for both a node's and a
{
if (annotation.ID.Contains("Node"))
{
- string ID = annotation.ID + "TemplateContent";
-