Class AnnotationConstraints
Annotation constraints control the features and behaviors of the annotations.
Inheritance
System.Object
AnnotationConstraints
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class AnnotationConstraints : Enum
Remarks
The annotation constraints are enabled or disabled using the Bitwise operators. The ‘~’ operator is used to disable the constraint.
Examples
<SfDiagram Height="600px" Nodes="@NodeCollection">
</SfDiagram>
@code{
ObservableCollection<DiagramNode> NodeCollection;
protected override void OnInitialized()
{
//Initialize the NodeCollection.
NodeCollection = new ObservableCollection<DiagramNode>();
DiagramNode Node = new DiagramNode()
{
Height = 100,
Width = 100,
OffsetX = 100,
OffsetY = 100,
};
Node.Annotations = new ObservableCollection<DiagramNodeAnnotation>()
{
new DiagramNodeAnnotation()
{
Content="Annotation Text Wrapping",
///sets the Constraints for Annotation...
Constraints=AnnotationConstraints.ReadOnly,
}
};
NodeCollection.Add(Node);
}
}
Fields
Drag
It enables the user to drag the annotation
Declaration
public const AnnotationConstraints Drag
Field Value
Type | Description |
---|---|
AnnotationConstraints |
InheritReadOnly
Enables or disables the user to inherit the ReadOnly option from the parent.
Declaration
public const AnnotationConstraints InheritReadOnly
Field Value
Type | Description |
---|---|
AnnotationConstraints |
Interaction
Enables or Disable annotation to inherit the interaction option
Declaration
public const AnnotationConstraints Interaction
Field Value
Type | Description |
---|---|
AnnotationConstraints |
None
Disables all the functionalities of annotation.
Declaration
public const AnnotationConstraints None
Field Value
Type | Description |
---|---|
AnnotationConstraints |
ReadOnly
It enables the user to only read (cannot be edited) the annotation.
Declaration
public const AnnotationConstraints ReadOnly
Field Value
Type | Description |
---|---|
AnnotationConstraints |
Resize
Enables or disables the resizing support for the annotation.
Declaration
public const AnnotationConstraints Resize
Field Value
Type | Description |
---|---|
AnnotationConstraints |
Rotate
Enables or disables the annotation rotation.
Declaration
public const AnnotationConstraints Rotate
Field Value
Type | Description |
---|---|
AnnotationConstraints |
Select
It enables the user to select the desired node or connector.
Declaration
public const AnnotationConstraints Select
Field Value
Type | Description |
---|---|
AnnotationConstraints |
value__
Declaration
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |