Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

LineHeight Property

LineHeight Property

Gets or sets the expected handwriting height, in HIMETRIC units.

Declaration

[C++]

[C++]
[propput] HRESULT put_LineHeight([in] LONG LineHeight);
[propget] HRESULT get_LineHeight ([out,retval]LONG* LineHeight);

[Microsoft® Visual Basic® 6.0]

[Visual Basic]
Public Property Get LineHeight() As Long
Public Property Let LineHeight(ByVal LineHeight As Variant)

Property Value

long The expected handwriting height, in HIMETRIC units. The value can be in the range from 100 to 50,000. The default value is 1200.

This property is read/write.

Return Value

HRESULT valueDescription
S_OKSuccess.
E_INVALIDARGThe parameter contains an invalid value.
TPC_E_OUT_OF_ORDER_CALLThis property cannot be assigned after strokes have been added to the Strokes property.

Remarks

The LineHeight property must be in the range of 100 to 50,000 HIMETRIC units.

The InkDivider object uses the LineHeight property to help distinguish between drawing and handwriting.

Setting the LineHeight property after strokes have been assigned to the InkDivider object generates an error.

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example creates an InkDivider object, theDivider, and sets the LineHeight property to 2052 HIMETRIC units.

[Visual Basic]
Dim theDivider As Microsoft.Ink.InkDivider
theDivider = New InkDivider
theDivider.LineHeight = 2052

Applies To

Related Topics

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.