Blazor

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TextOverflow

    Show / Hide Table of Contents

    Class TextOverflow

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

    Inheritance
    System.Object
    TextOverflow
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class TextOverflow : Enum
    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

    Clip

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

    Declaration
    public const TextOverflow Clip
    Field Value
    Type Description
    TextOverflow

    Ellipsis

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

    Declaration
    public const TextOverflow Ellipsis
    Field Value
    Type Description
    TextOverflow

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32

    Wrap

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

    Declaration
    public const TextOverflow Wrap
    Field Value
    Type Description
    TextOverflow
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved