Class LinkContentSettings
Represents type-specific settings for link content items in the SfBlockEditor.
Inherited Members
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 |