GoDiagram Win Reference
CreateIcon(ImageList,Int32) Method
Example 

Create and initialize a GoImage to act as the node's icon.
Syntax
'Declaration
 
Protected Overloads Overridable Function CreateIcon( _
   ByVal imglist As ImageList, _
   ByVal imgindex As Integer _
) As GoObject
protected virtual GoObject CreateIcon( 
   ImageList imglist,
   int imgindex
)

Parameters

imglist
imgindex

Return Value

a GoNodeIcon that obeys this node's MinimumIconSize and MaximumIconSize properties
Example
If you override this method, you may want the definition to do some of the things that the standard definition does:
protected virtual GoObject CreateIcon(System.Windows.Forms.ImageList imglist, int imgindex) {
  GoNodeIcon ni = new GoNodeIcon();
  ni.ImageList = imglist;
  ni.Index = imgindex;
  ni.MinimumIconSize = new SizeF(20, 20);
  ni.MaximumIconSize = new SizeF(1000, 2000);
  ni.Size = ni.MinimumIconSize;
  return ni;
}
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

GoGeneralNode Class
GoGeneralNode Members
Overload List

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback