TextPane Interface
Visual Studio 2005
Represents a pane within a text editor window.
Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)
Assembly: EnvDTE (in envdte.dll)
public void TextPaneExample(_DTE dte) { TextWindow tw; TextPane tpn; TextPoint tpt; tw = (TextWindow)dte.ActiveWindow.Object; tpn = tw.ActivePane; MessageBox.Show ("The active pane is " + tpn.Height.ToString () + " lines high and " + tpn.Width.ToString () + " columns wide."); tpt = tpn.StartPoint; MessageBox.Show ("It begins at line " + tpt.Line.ToString () + ", column " + tpt.LineCharOffset.ToString () + "."); }