GoDiagram Web Reference
GetPenWidth(Pen,GoView) Method

Get the effective width of a pen in a view.
Syntax
'Declaration
 
Public Shared Function GetPenWidth( _
   ByVal pen As Pen, _
   ByVal view As GoView _
) As Single
public static float GetPenWidth( 
   Pen pen,
   GoView view
)

Parameters

pen
view

Return Value

Zero if pen is null. If the pen's Width is zero, this returns the width of one pixel in the view, if the view is non-null, inversely proportional to the DocScale. Otherwise this just returns the pen's Width.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoShape Class
GoShape Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback