TextSource.GetPrecedingText(Int32) Methode

Definitie

Haalt de tekstspanne direct voor de opgegeven TextSource positie op.

public:
 abstract System::Windows::Media::TextFormatting::TextSpan<System::Windows::Media::TextFormatting::CultureSpecificCharacterBufferRange ^> ^ GetPrecedingText(int textSourceCharacterIndexLimit);
public abstract System.Windows.Media.TextFormatting.TextSpan<System.Windows.Media.TextFormatting.CultureSpecificCharacterBufferRange> GetPrecedingText(int textSourceCharacterIndexLimit);
abstract member GetPrecedingText : int -> System.Windows.Media.TextFormatting.TextSpan<System.Windows.Media.TextFormatting.CultureSpecificCharacterBufferRange>
Public MustOverride Function GetPrecedingText (textSourceCharacterIndexLimit As Integer) As TextSpan(Of CultureSpecificCharacterBufferRange)

Parameters

textSourceCharacterIndexLimit
Int32

De positie van de tekenindex waar het ophalen van tekst stopt.

Retouren

Een CultureSpecificCharacterBufferRange waarde die de tekstspanne direct vóór textSourceCharacterIndexLimitaangeeft.

Opmerkingen

De GetPrecedingText methode retourneert een lege CultureSpecificCharacterBufferRange waarde als de tekstspanne direct vóór textSourceCharacterIndexLimit geen tekst bevat, zoals een inline-object of een verborgen uitvoering.

Deze methode retourneert een tekstbereik met lengte nul als er geen waarden voorafgaan textSourceCharacterIndexLimit.

Van toepassing op