alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Enum TextWrap

    Specifies how to control the overflow of text in the node boundaries. The wrapping property defines how to wrap the text.

    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    [JsonConverter(typeof(JsonStringEnumConverter))]
    public enum TextWrap
    Examples
    Node node = new Node()
    {
        // Position of the node
        OffsetX = 250,
        OffsetY = 250,
        // Size of the node
        Width = 100,
        Height = 100,
        Style = new ShapeStyle() { Fill = "#6495ED", StrokeColor = "white" },
        // Initialize annotation collection
        Annotations = new DiagramObjectCollection<ShapeAnnotation>() 
        { 
            new ShapeAnnotation 
            { 
                Content = "Node",
                ID = "Annotation",
                 Style= new TextStyle()
                 {
                     TextWrapping = TextWrap.NoWrap,
                 }
            }
        },
    };

    Fields

    Name Description
    NoWrap

    The text will not be wrapped. If a lengthy text exists, the boundary will not be a limit.

    Wrap

    The text will be wrapped within the boundary.

    WrapWithOverflow

    Text-wrapping occurs when the text overflows beyond the available node width. However, the text may overflow beyond the node width in case of a very long word.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved