Northwoods.GoWeb Assembly > Northwoods.GoWeb Namespace : GoComment Class |
'Declaration <SerializableAttribute()> Public Class GoComment Inherits GoGroup Implements IGoCollection, IGoIdentifiablePart, IGoLabeledNode, IGoLabeledPart
[SerializableAttribute()] public class GoComment : GoGroup, IGoCollection, IGoIdentifiablePart, IGoLabeledNode, IGoLabeledPart
The Background is normally a GoRectangle, but could be any kind of GoObject. Hence you can easily customize that rectangle's appearance by setting properties on the Shape, such as:
comment.Shape.BrushColor = Color.LightSkyBlue comment.Shape.PenColor = Color.DeepSkyBlueOr you could replace the Background with a different GoShape.
LayoutChildren sizes the Background to fit around the Label, using the TopLeftMargin and the BottomRightMargin to leave space between the Label and the bounds of the Background shape. If you use other shapes, you may need to increase these margins.
Because this class has a Label, it implements the IGoLabeledNode interface, even though this class is not a "node". It also implements IGoIdentifiablePart, to make it easier to keep track of the different comments that might be in your diagram, if you have set GoDocument.MaintainsPartID to true in your GoDocument.
System.Object
Northwoods.GoWeb.GoObject
Northwoods.GoWeb.GoGroup
Northwoods.GoWeb.GoComment
Northwoods.GoWeb.GoBalloon
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