TextPanes الواجهة
يحتوي على الجميع TextPaneعلى الكائنات في محرر نص نافذة.
مساحة الاسم: EnvDTE
التجميع: EnvDTE (في EnvDTE.dll)
بناء الجملة
'إقرار
<GuidAttribute("D9013D31-3652-46B2-A25A-29A881B9F86B")> _
Public Interface TextPanes _
Inherits IEnumerable
[GuidAttribute("D9013D31-3652-46B2-A25A-29A881B9F86B")]
public interface TextPanes : IEnumerable
[GuidAttribute(L"D9013D31-3652-46B2-A25A-29A881B9F86B")]
public interface class TextPanes : IEnumerable
[<GuidAttribute("D9013D31-3652-46B2-A25A-29A881B9F86B")>]
type TextPanes =
interface
interface IEnumerable
end
public interface TextPanes extends IEnumerable
ملاحظات
يمكنك تقسيم نافذة محرر نص داخل الثاني الأجزاء. TextPaneالكائن يوفر لك الوصول إلى تحديد نص معين مقترن بكل جزء، بالإضافة إلى خصائصه، مثل الارتفاع والعرض. TextPanesيحتوي تجميع واحد أو المزيد هذه TextPaneالكائنات لإطار محرر نص.
أمثلة
Sub TextPanesExample(ByVal dte As EnvDTE.DTE)
Dim objTW As TextWindow
Dim colPanes As TextPanes
objTW = dte.ActiveWindow.Object
colPanes = objTW.Panes
MsgBox("The """ & objTW.Parent.Caption & """ window contains " & _
Str(colPanes.Count) & " pane(s).")
End Sub
public void TextPanesExample(_DTE dte)
{
TextWindow tw;
TextPanes tps;
tw = (TextWindow)dte.ActiveWindow.Object;
tps = tw.Panes;
MessageBox.Show ("The \"" + tw.Parent.Caption + "\"" + " window
contains " + tps.Count.ToString () + " pane(s).");
}