ITextStructureNavigatorSelectorService.CreateTextStructureNavigator Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
ITextStructureNavigator ITextBuffer Gezginini seçmek için belirtilen öğesini kullanarak belirtilen için yeni bir oluşturur IContentType .
public:
Microsoft::VisualStudio::Text::Operations::ITextStructureNavigator ^ CreateTextStructureNavigator(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer, Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
public:
Microsoft::VisualStudio::Text::Operations::ITextStructureNavigator ^ CreateTextStructureNavigator(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer, Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
Microsoft::VisualStudio::Text::Operations::ITextStructureNavigator CreateTextStructureNavigator(Microsoft::VisualStudio::Text::ITextBuffer const & textBuffer, Microsoft::VisualStudio::Utilities::IContentType const & contentType);
public Microsoft.VisualStudio.Text.Operations.ITextStructureNavigator CreateTextStructureNavigator (Microsoft.VisualStudio.Text.ITextBuffer textBuffer, Microsoft.VisualStudio.Utilities.IContentType contentType);
abstract member CreateTextStructureNavigator : Microsoft.VisualStudio.Text.ITextBuffer * Microsoft.VisualStudio.Utilities.IContentType -> Microsoft.VisualStudio.Text.Operations.ITextStructureNavigator
Public Function CreateTextStructureNavigator (textBuffer As ITextBuffer, contentType As IContentType) As ITextStructureNavigator
Parametreler
- textBuffer
- ITextBuffer
ITextBuffer ITextStructureNavigator Gezinirsiniz.
- contentType
- IContentType
Kullanılacak içerik türü.
Döndürülenler
Geçerli bir ITextStructureNavigator . Bu değer hiçbir şekilde nulldeğildir).
Özel durumlar
textBuffernull.
Açıklamalar
Verilen içerik türü için bir gezgin bulunamazsa, bu yöntem üst öğe için bir tane kullanır IContentType . Eşleşen birden fazla üst öğe varsa IContentType ITextStructureNavigator , bu yöntem rastgele bir üst öğenin döndürür ITextStructureNavigator .
Oluşturulan gezgin önbelleğe alınmaz; aynı arabellek ve içerik türü için bu yönteme yapılan sonraki çağrılar farklı ITextStructureNavigator nesneler döndürür.