alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Enum TextDecoration

    Represents the decoration of a text in the text block.

    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    [JsonConverter(typeof(JsonStringEnumConverter))]
    public enum TextDecoration
    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>() 
        { 
            // Add text as hyperlink.
               new ShapeAnnotation {  Style= new TextStyle(){TextDecoration = TextDecoration.None, } }
        },
    };

    Fields

    Name Description
    LineThrough

    Draws a horizontal line through the text of a node or a connector.

    None

    Represents the default appearance of a text.

    Overline

    Draws a horizontal line above the text.

    Underline

    Draws a horizontal line under the text.

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