Muokkaa

Jaa


TextBox.CurX Property (Outlook Forms Script)

Returns or sets a Long that represents the current horizontal position of the insertion point in a multiline TextBox. Read/write.

Syntax

expression.CurX

expression A variable that represents a TextBox object.

Remarks

The CurX property applies to a multiline TextBox. The return value is valid when the object has the focus.

Use CurTargetX and CurX to position the insertion point as the user scrolls through the contents of a multiline TextBox. When the user moves the insertion point to another line of text by scrolling the content of the object, CurTargetX specifies the preferred position for the insertion point. CurX is set to this value if the line of text is longer than the value of CurTargetX. Otherwise, CurX is set to the end of the line of text.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.