Skip to main content
All docs
V25.2
  • ChangeTextBehaviorProperties.TextRetrievalMode Property

    Specifies how an AI-powered extension determines the text to process when it sends a request.

    Namespace: DevExpress.AIIntegration.WinForms

    Assembly: DevExpress.AIIntegration.WinForms.v25.2.dll

    NuGet Package: DevExpress.AIIntegration.WinForms

    Declaration

    [DefaultValue(TextRetrievalMode.Default)]
    public virtual TextRetrievalMode TextRetrievalMode { get; set; }

    Property Value

    Type Default Description
    TextRetrievalMode Default

    A value that specifies whether the extension uses the selected text, the paragraph, the full text when no selection exists, or the full text in all cases.

    Available values:

    Name Description
    Default

    The extension automatically selects text based on the editor type. For text-based editors, it sends the selected text. For the Rich Text Editor, it sends the current paragraph.

    Selection

    The extension sends only the selected text.

    AllTextIfNoneSelected

    The extension sends the selected text. If no selection exists, it sends the full text.

    AllText

    The extension always sends the full text.

    See Also