GemBox.Document
  • Overview
  • Examples
  • Free version
  • Support
  • Pricing

    Show / Hide Table of Contents

    PatternBrush Class

    Namespace:
    GemBox.Document.Drawing
    Assembly:
    GemBox.Document.dll

    Represents a brush which paints an area with a repeated pattern.

    • C#
    • VB.NET
    public class PatternBrush : Brush
    Public Class PatternBrush
        Inherits Brush
    Inheritance:
    System.Object
    Brush
    PatternBrush
    Remarks

    This brush can use predefined patterns to paints an area. Additionally, it supports custom pattern data or patterns derived from an image file if the document file provides suitable pattern information.

    Properties

    BackgroundColor

    Gets or sets the background color of this PatternBrush.

    • C#
    • VB.NET
    public Color BackgroundColor { get; set; }
    Public Property BackgroundColor As Color
    Property Value
    Color

    The background color of this PatternBrush.

    ForegroundColor

    Gets or sets the foreground color of this PatternBrush.

    • C#
    • VB.NET
    public Color ForegroundColor { get; set; }
    Public Property ForegroundColor As Color
    Property Value
    Color

    The foreground color of this PatternBrush.

    PatternType

    Gets or sets the pattern type of this PatternBrush.

    • C#
    • VB.NET
    public PatternBrushType? PatternType { get; set; }
    Public Property PatternType As PatternBrushType?
    Property Value
    System.Nullable<PatternBrushType>

    The pattern type of this PatternBrush, or null if custom pattern data is used.

    Inherited Properties

    IsEmpty

    Gets a value indicating whether the parent element is painted.

    (Inherited from Brush)

    Inherited Methods

    SetDefault()

    Sets a default brush on the parent element (element will be painted based on the default settings).

    (Inherited from Brush)

    SetEmpty()

    Sets an empty brush on the parent element (element won't be painted).

    (Inherited from Brush)

    SetGradient(GradientBrushType)

    Sets a gradient brush on the parent element.

    (Inherited from Brush)

    SetPattern(PatternBrushType, Color, Color)

    Sets a pattern brush on the parent element.

    (Inherited from Brush)

    SetPicture(Content)

    Sets a picture brush on the parent element.

    This method is not applicable on Fill property.

    (Inherited from Brush)

    SetPicture(System.IO.Stream)

    Sets a picture brush on the parent element.

    This method is not applicable on Fill property.

    (Inherited from Brush)

    SetPicture(System.IO.Stream, PictureContentType)

    Sets a picture brush on the parent element.

    This method is not applicable on Fill property.

    (Inherited from Brush)

    SetPicture(System.IO.Stream, System.String)

    Sets a picture brush on the parent element.

    This method is not applicable on Fill property.

    (Inherited from Brush)

    SetPicture(System.String, System.Boolean)

    Sets a picture brush on the parent element.

    This method is not applicable on Fill property.

    (Inherited from Brush)

    SetPicture(System.String, PictureContentType)

    Sets a picture brush on the parent element.

    This method is not applicable on Fill property.

    (Inherited from Brush)

    SetPicture(System.String, System.String)

    Sets a picture brush on the parent element.

    This method is not applicable on Fill property.

    (Inherited from Brush)

    SetSolid(Color)

    Sets a solid color brush on the parent element.

    (Inherited from Brush)

    SetSolid(Color, System.Byte)

    Sets a solid color brush on the parent element.

    (Inherited from Brush)

    ToString()

    Returns a System.String that represents this Brush instance.

    (Inherited from Brush)

    Examples

    Shapes example
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.