GoDiagram Web Reference
Paint Method (GoPort)

Draw a port as either a simple shape using a Pen and Brush, as an arbitrary object, or not at all.
Syntax
'Declaration
 
Public Overrides Sub Paint( _
   ByVal g As Graphics, _
   ByVal view As GoView _
) 
public override void Paint( 
   Graphics g,
   GoView view
)

Parameters

g
view
Remarks
By default this method uses the Style property to determine the general shape of the port. When the Style is GoPortStyle.GoPortStyle.None, nothing is painted. When the Style is GoPortStyle.GoPortStyle.Object and the PortObject is an object that does not belong to any GoLayer, we set the PortObject's Bounds property to this port's bounds before painting that PortObject. If the Style is not GoPortStyle.Object, or if the PortObject belongs to a layer (typically because it belongs to this port's node or it is the node itself), then the PortObject is ignored here -- it will be painted by the normal mechanisms and not specially for this port. This ignores the GoObject.Shadowed property.
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

GoPort Class
GoPort Members
Base Implementation in Paint

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback