This documentation is archived and is not being maintained.

Height Property (TextPane Object)

Visual Studio .NET 2003

Returns the height of the window or text pane in character units.

[Visual Basic .NET]
Public ReadOnly Property Height() As Long
[Visual Basic 6]
Property Get Height() As Long
HRESULT __stdcall get_Height(
   /* [out, retval] */ long* retVal
int Height {get;}
[JScript .NET]
public function get Height() : int


Sub HeightExample()
   Dim objTW As TextWindow
   Dim objPane As TextPane
   Dim objStart As TextPoint

   Set objTW = ActiveWindow.Object
   Set objPane = objTW.ActivePane
   Msgbox "The active pane is " & str(objPane.Height) & " lines high and " & str(objPane.Width) & " columns wide."
   Set objStart = objPane.StartPoint
   Msgbox "It begins at line " & str(start.Line) & ", column " & str(start.LineCharOffset) & "."
End Sub

See Also

Width Property (General Extensibility)

Applies To: TextPane Object