Export (0) Print
Expand All
ID
Top
Expand Minimize

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
[C++]
HRESULT __stdcall get_Height(
   /* [out, retval] */ long* retVal
);
[C#]
int Height {get;}
[JScript .NET]
public function get Height() : int

Example

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

Show:
© 2014 Microsoft