GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoIconicNode Class / CreateIcon Method / CreateIcon(ImageList,Int32) Method
Example
In This Topic
    CreateIcon(ImageList,Int32) Method
    In This Topic
    Create and initialize an image to act as the node's icon.
    Syntax
    protected virtual GoObject CreateIcon( 
       ImageList imglist,
       int imgindex
    )

    Parameters

    imglist
    imgindex

    Return Value

    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) {
      GoImage img = new GoImage();
      img.ImageList = imglist;
      img.Index = imgindex;
      img.Selectable = false;
      img.Resizable = false;
      return img;
    }
    See Also