GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoListGroup Class / BrushStyle Property
In This Topic
    BrushStyle Property (GoListGroup)
    In This Topic
    Gets or sets the kind of brush used by this shape.
    Syntax
    [Category("Appearance")]
    [Description("The kind of simple brush used by this shape, including some linear and path gradients")]
    public virtual GoBrushStyle BrushStyle {get; set;}

    Property Value

    A GoBrushStyle. The default value depends on the shape type. However, for most shapes the default is GoBrushStyle.None because Brush is null.
    Remarks

    Changing this property to a new GoBrushStyle that is a gradient will also reset some of the brush properties to default values established by the corresponding Fill... methods. In particular, the value of BrushMidFraction, BrushPoint, BrushStartPoint, and/or BrushFocusScales may change. However, setting this property will not change the BrushColor, BrushForeColor or BrushMidColor properties, although some or all of those properties might not be used by certain brush styles. You will normally want to set this property first, before setting other Brush... properties.

    When a linear gradient brush or a path gradient brush is drawn very small, due to a combination of small size and small GoView.GoView.DocScale, GoDiagram may substitute a solid brush or not draw anything at all, both for efficiency as well as to avoid GDI+ errors. When a path gradient brush is drawn very large, due to a combination of large size and large GoView.GoView.DocScale, GoDiagram may substitute a solid brush, both for efficiency as well as to avoid GDI+ errors.

    Caution: using gradient brush styles, particularly path gradients, can be computationally expensive to paint. This is especially true for large shapes.

    See Also