Northwoods.GoWeb Assembly > Northwoods.GoWeb Namespace > GoGeneralNode Class : CreateIcon Method |
'Declaration Protected Overridable Function CreateIcon( _ ByVal res As ResourceManager, _ ByVal iconname As String _ ) As GoObject
protected virtual GoObject CreateIcon( ResourceManager res, string iconname )
protected virtual GoObject CreateIcon(ResourceManager res, String iconname) { if (iconname != null) { GoNodeIcon ni = new GoNodeIcon(); if (res != null) ni.ResourceManager = res; ni.Name = iconname; ni.MinimumIconSize = new SizeF(20, 20); ni.MaximumIconSize = new SizeF(1000, 2000); ni.Size = ni.MinimumIconSize; return ni; } else { GoDrawing rect = new GoDrawing(GoFigure.Rectangle); rect.Selectable = false; rect.Resizable = false; rect.Size = new SizeF(20, 20); return rect; } }
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