IObjectView.Height [Property][Get/Set]
- Last UpdatedJul 18, 2023
- 1 minute read
Gets or Sets the height in pixels of the Object View window.
Defined As
-
[VBA] Long Height
-
[Cicode] INT Height
-
[C++] int Height
Execution Result
If the property get succeeds, the return value will be Success. If the return variable is bad, the return value will be InvalidArgument. A height value less than 0 will be InvalidArgument.
Limits
-
Height needs to be 0 or greater.
Remarks
As the ObjectView and chart both share the same window, by enlarging the ObjectView, you make the Chart smaller and vice versa.
Calling Syntax
This example assumes that there is an IObjectView object being passed in as a parameter.
[VBA]
Sub Example(objectView As Object)
Dim height As Long
`Getting Property value
height = objectView.Height
`Setting Property value
objectView.Height = 25
End Sub
[Cicode]
FUNCTION Example(OBJECT hObjectView)
INT nHeight = 0;
// Getting property value
nHeight = _ObjectGetProperty(hObjectView, "Height");
// Setting Property to false
_ObjectSetProperty(hObjectView, "Height", 25);
END