Gets or sets the vertical coordinates for the next printing or drawing method.
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Coordinates are measured from the upper-left corner of a page. The CurrentX property setting is 0 at the page's left edge, and the CurrentY property setting is 0 at its top edge. Coordinates are expressed in twips, or the current unit of measurement defined by the ScaleHeight, ScaleWidth, ScaleLeft, ScaleTop, and ScaleMode properties.
Sets CurrentX, CurrentY to
The center of the object.
The end point of the line.
The next print position.
The point drawn.
Functions and objects in the Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.
The following example demonstrates how to set the CurrentX and CurrentY properties. In this case, it prints text 500 twips from the top edge of the page and 500 twips from the left edge of a page.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.