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 value Description
S_OK Success.
E_INVALIDARG The parameter contains an invalid value.
TPC_E_OUT_OF_ORDER_CALL This 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