Northwoods.GoWeb Assembly > Northwoods.GoWeb Namespace > GoGeneralNode Class : LayoutIcon Method |
'Declaration Protected Overridable Sub LayoutIcon()
protected virtual void LayoutIcon()
protected override void LayoutIcon() { GoObject icon = this.Icon; if (icon != null && icon.AutoRescales) { SizeF minIconSize = this.MinimumIconSize; float newW = minIconSize.Width; float newH = minIconSize.Height; icon.Bounds = new RectangleF(icon.Left - (newW - icon.Width)/2, icon.Top - (newH - icon.Height)/2, newW, newH); } }
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