LanguageService.GetCodeWindowManager 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.
Bir CodeWindowManager sınıf oluşturur.
public:
virtual int GetCodeWindowManager(Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindow ^ codeWindow, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindowManager ^ % mgr);
public:
int GetCodeWindowManager(Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindow ^ codeWindow, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindowManager ^ & mgr);
int GetCodeWindowManager(Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindow const & codeWindow, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindowManager const & & mgr);
public int GetCodeWindowManager (Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindow codeWindow, out Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindowManager mgr);
abstract member GetCodeWindowManager : Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindow * IVsCodeWindowManager -> int
override this.GetCodeWindowManager : Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindow * IVsCodeWindowManager -> int
Public Function GetCodeWindowManager (codeWindow As IVsCodeWindow, ByRef mgr As IVsCodeWindowManager) As Integer
Parametreler
- codeWindow
- IVsCodeWindow
'ndaki IVsCodeWindow Yeni bir nesne ile ilişkilendirilecek CodeWindowManager .
dışı Yeni CodeWindowManager nesne.
Döndürülenler
Başarılı olursa, döndürür S_OK ; Aksi takdirde, bir hata kodu döndürür.
Uygulamalar
Açıklamalar
Visual Studio dil hizmetinizin kendisini belirli bir kod penceresiyle ilişkilendirmek için bir fırsat sağlamak üzere bu yöntemi çağırır. Bir Gezinti çubuğunun yanı sıra (sınıfı tarafından zaten işlenmiş olan) kod penceresine başka öğeler eklemeniz gerekiyorsa CodeWindowManager , sınıftan bir sınıf türemeli CodeWindowManager ve bu yöntemden sınıfınızın bir örneğini döndürmelidir. Türetilmiş sınıfınız için temel oluşturucuyu çağırmalıdır CodeWindowManager .
Taban yöntemi her zaman yeni bir CodeWindowManager nesne döndürür. Bu temel yöntem Source CreateSource , yeni bir Colorizer nesne (bir çağrısıyla) ile birlikte sağlanan bir nesne (çağrısı olan) başlatır Microsoft.VisualStudio.Package.Source.GetColorizer . Nesne oluşturulduğunda Source , CreateExpansionProvider ExpansionProvider CreateExpansionFunction nesne elde etmek için çağıran yeni bir nesne elde etmek için çağırır ExpansionFunction . CodeWindowManagerOluşturucu CreateDocumentProperties Yeni bir nesne almak için çağırır DocumentProperties .