Printer.PSet Method (Single, Single)
Prints a single point on a page.
Namespace: Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
public void PSet(
float x,
float y
)
public:
void PSet(
float x,
float y
)
member PSet :
x:float32 *
y:float32 -> unit
Public Sub PSet (
x As Single,
y As Single
)
Parameters
x
Type: System.SingleSingle value indicating the horizontal coordinates of the point to print.
y
Type: System.SingleSingle value indicating the vertical coordinates of the point to print.
Remarks
The size of the point printed depends on the setting of the DrawWidth property. When DrawWidth is set to 1, PSet prints a single point. When DrawWidth is more than 1, the point is centered on the specified coordinates.
The manner in which the point is printed depends on the setting of the DrawStyle property.
When PSet runs, the CurrentX and CurrentY properties are set to the point specified by the arguments.
Note
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. 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.
Examples
The following example demonstrates how to print a single point.
Dim Printer As New Printer
Printer.PSet(500, 500)
Printer.EndDoc()
See Also
PSet Overload
Printer Class
Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Namespace
bc1bcb98-e13b-4c68-a514-045c042dbf367f9351ea-cb3e-4615-8f70-5a29c165c1a74e434922-3709-49c6-a69d-38120ed72d7a
Return to top