menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SelectionChangedEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SelectionChangedEventArgs

    Provides information about the SelectionChanged event.

    Inheritance
    System.Object
    SelectionChangedEventArgs
    Namespace: Syncfusion.Blazor.RichTextEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SelectionChangedEventArgs : Object
    Remarks

    This class encapsulates selected content, and the editor mode at the time of selection change.

    Constructors

    SelectionChangedEventArgs()

    Declaration
    public SelectionChangedEventArgs()

    Properties

    EditorMode

    Gets the editor mode when the selection changed.

    Declaration
    public EditorMode EditorMode { get; }
    Property Value
    Type Description
    EditorMode

    An EditorMode value indicating if the editor is in HTML or Markdown mode.

    Remarks

    Possible values are HTML and Markdown.

    SelectedContent

    Gets the HTML string representation of the current non-empty selection, including any inline styles and semantic tags.

    Declaration
    public string SelectedContent { get; }
    Property Value
    Type Description
    System.String

    A System.String representing the selected content as HTML. Returns an empty string if no content is selected.

    Remarks

    This property returns the full HTML markup of the current selection and maintains all formatting applied to the selection.

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