alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Enum TextOverflow

    Specifies a value that indicates whether to render ellipses (...) to indicate text overflow.

    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    [JsonConverter(typeof(JsonStringEnumConverter))]
    public enum TextOverflow
    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()
                 {
                    TextOverflow = TextOverflow.Wrap,
                 }
            }
        },
    };

    Fields

    Name Description
    Clip

    The text is restricted to the node/connector boundary and the text will not be overflown.

    Ellipsis

    Ellipsis hides the text if the text size exceeds the boundary.

    Wrap

    Wraps the text to the next line, when it exceeds its bounds.

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