Back to Devexpress

ChangeTextBehaviorProperties.TextRetrievalMode Property

windowsforms-devexpress-dot-aiintegration-dot-winforms-dot-changetextbehaviorproperties-1665bc8f.md

latest2.1 KB
Original Source

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

csharp
[DefaultValue(TextRetrievalMode.Default)]
public virtual TextRetrievalMode TextRetrievalMode { get; set; }
vb
<DefaultValue(TextRetrievalMode.Default)>
Public Overridable Property TextRetrievalMode As TextRetrievalMode

Property Value

TypeDefaultDescription
TextRetrievalModeDefault

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:

NameDescription
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

ChangeTextBehaviorProperties Class

ChangeTextBehaviorProperties Members

DevExpress.AIIntegration.WinForms Namespace