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

TextPanes 형식에서는 다음과 같은 멤버를 노출합니다.

속성

  이름 설명
Public 속성 Count TextPanes 컬렉션의 개체 수를 나타내는 값을 가져옵니다.
Public 속성 DTE 최상위 확장성 개체를 가져옵니다.
Public 속성 Parent TextPanes 컬렉션의 바로 위 부모 개체를 가져옵니다.

위쪽

메서드

  이름 설명
Public 메서드 GetEnumerator() 컬렉션을 반복하는 열거자를 반환합니다. (IEnumerable에서 상속됨)
Public 메서드 GetEnumerator() 컬렉션의 항목에 대한 열거형을 가져옵니다.
Public 메서드 Item TextPanes 컬렉션의 TextPane 개체를 반환합니다.

위쪽

설명

텍스트 편집기 창을 두 개의 창으로 분할할 수 있습니다. 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).");
}

참고 항목

참조

EnvDTE 네임스페이스