Example of Annotations in Blazor Diagram Component
Properties
Insert Link
This sample demonstrates how to add textual annotations to diagram shapes and customize their position and appearance.
Annotation features:
- Add textual descriptions to diagram shapes using the
Annotationsproperty. - Customize annotation position using the
Offset,HorizontalAlignment, andVerticalAlignmentproperties. - Style annotations using
Bold,Italic,FontSize, andFontFamilyproperties. -
Interact with annotation text using
AnnotationConstraintsoptions such asSelect,Drag,Resize, andRotate, which define annotation behavior and user interaction. -
Configure hyperlinks using the
HyperlinkSettingsobject. TheUrlproperty specifies the navigation link, and theContentproperty defines the display text (shown as Link Text in the UI). If no content is provided, the URL is displayed by default. TheHyperlinkOpenModeproperty specifies how the hyperlink is opened when clicked:Self- Opens the hyperlink in the current browser tab.Blank- Opens the hyperlink in a new browser tab.
Looking for the full Blazor Diagram component overview, features, pricing, and documentation? Visit the Blazor Diagram page.