GoDiagram Web Reference
GoComment Class
Members 

A simple group displaying text with a shadowed background.
Syntax
'Declaration
 
<SerializableAttribute()>
Public Class GoComment 
   Inherits GoGroup
   Implements IGoCollectionIGoIdentifiablePartIGoLabeledNodeIGoLabeledPart 
Remarks

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.DeepSkyBlue
            
Or 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.

Inheritance Hierarchy

System.Object
   Northwoods.GoWeb.GoObject
      Northwoods.GoWeb.GoGroup
         Northwoods.GoWeb.GoComment
            Northwoods.GoWeb.GoBalloon

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

GoComment Members
Northwoods.GoWeb Namespace

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback