Delen via


ITextRangeProvider.GetText(Int32) Method

Definition

Retrieves the plain text of the range.

public:
 Platform::String ^ GetText(int maxLength);
winrt::hstring GetText(int const& maxLength);
public string GetText(int maxLength);
function getText(maxLength)
Public Function GetText (maxLength As Integer) As String

Parameters

maxLength
Int32

int

The maximum length of the string to return. Use – 1 to specify an unlimited length.

Returns

String

Platform::String

winrt::hstring

The plain text of the text range, which might represent a portion of the full string truncated at the specified maxLength.

Applies to