alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class LinkContentSettings

    Represents type-specific settings for link content items in the SfBlockEditor.

    Inheritance
    object
    ContentSettings
    LinkContentSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.BlockEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class LinkContentSettings : ContentSettings
    Remarks

    Assign an instance of LinkContentSettings to ContentModel.Properties when ContentModel.ContentType is Link to control link behavior.

    When Url is empty, the link will render as plain text or a non-navigable item depending on the editor configuration.

    Examples

    Creates a link content item that opens in a new window.

    var linkItem = new ContentModel
    {
        ID = "lnk-1",
        ContentType = ContentType.Link,
        Content = "Syncfusion",
        Properties = new LinkContentSettings
        {
            Url = "https://www.syncfusion.com/",
            OpenInNewWindow = true
        }
    };

    Constructors

    LinkContentSettings()

    Declaration
    public LinkContentSettings()

    Properties

    Styles

    Gets or sets the styles for the text content

    Declaration
    public StyleModel Styles { get; set; }
    Property Value
    Type
    StyleModel

    Url

    Gets or sets URL of the link

    Declaration
    public string Url { get; set; }
    Property Value
    Type
    string
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved