ZedGraph LogoZedGraph Class Library Documentation
Fill Class
NamespacesZedGraphFill
A class that encapsulates color-fill properties for an object. The Fill class is used in Rect, Rect, Legend, Bar, and Line objects.
Declaration Syntax
C#Visual BasicVisual C++
<SerializableAttribute> _
Public Class Fill _
	Implements ISerializable, ICloneable
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
FillFillNew()()
The default constructor. Initialized to no fill.

FillFillNew(Color, Brush, FillType)
Constructor that specifies the color, brush, and type for this fill.

FillFillNew(Color)
Constructor that creates a solid color-fill, setting Type to Solid, and setting Color to the specified color value.

FillFillNew(Color, Color, Single)
Constructor that creates a linear gradient color-fill, setting Type to Brush using the specified colors and angle.

FillFillNew(Color, Color)
Constructor that creates a linear gradient color-fill, setting Type to Brush using the specified colors.

FillFillNew(Color, Color, Color)
Constructor that creates a linear gradient color-fill, setting Type to Brush using the specified colors. This gradient fill consists of three colors.

FillFillNew(Color, Color, Color, Single)
Constructor that creates a linear gradient color-fill, setting Type to Brush using the specified colors. This gradient fill consists of three colors

FillFillNew(ColorBlend)
Constructor that creates a linear gradient multi-color-fill, setting Type to Brush using the specified colors. This gradient fill consists of many colors based on a ColorBlend object. The gradient angle is defaulted to zero.

FillFillNew(ColorBlend, Single)
Constructor that creates a linear gradient multi-color-fill, setting Type to Brush using the specified colors. This gradient fill consists of many colors based on a ColorBlend object, drawn at the specified angle (degrees).

FillFillNew(array<Color>[]())
Constructor that creates a linear gradient multi-color-fill, setting Type to Brush using the specified colors. This gradient fill consists of many colors based on an array of Color objects, drawn at an angle of zero (degrees). The array is used to create a ColorBlend object assuming a even linear distribution of the colors across the gradient.

FillFillNew(array<Color>[](), Single)
Constructor that creates a linear gradient multi-color-fill, setting Type to Brush using the specified colors. This gradient fill consists of many colors based on an array of Color objects, drawn at the specified angle (degrees). The array is used to create a ColorBlend object assuming a even linear distribution of the colors across the gradient.

FillFillNew(array<Color>[](), array<Single>[]())
Constructor that creates a linear gradient multi-color-fill, setting Type to Brush using the specified colors. This gradient fill consists of many colors based on an array of Color objects, drawn at the an angle of zero (degrees). The array is used to create a ColorBlend object assuming a even linear distribution of the colors across the gradient.

FillFillNew(array<Color>[](), array<Single>[](), Single)
Constructor that creates a linear gradient multi-color-fill, setting Type to Brush using the specified colors. This gradient fill consists of many colors based on an array of Color objects, drawn at the specified angle (degrees). The array is used to create a ColorBlend object assuming a even linear distribution of the colors across the gradient.

FillFillNew(Image, WrapMode)
Constructor that creates a texture fill, setting Type to Brush and using the specified image.

FillFillNew(Brush)
Constructor that creates a Brush fill, using a user-supplied, custom Brush. The brush will be scaled to fit the destination screen object unless you manually change IsScaled to false;

FillFillNew(Brush, Boolean)
Constructor that creates a Brush fill, using a user-supplied, custom Brush. The brush will be scaled to fit the destination screen object according to the parameter.

FillFillNew(Brush, AlignH, AlignV)
Constructor that creates a Brush fill, using a user-supplied, custom Brush. This constructor will make the brush unscaled (see IsScaled), but it provides and parameters to control alignment of the brush with respect to the filled object.

FillFillNew(Fill)
The Copy Constructor

AlignH
Determines how the brush will be aligned with the filled object in the horizontal direction. This value is a AlignH enumeration. This field only applies if IsScaled is false.

AlignV
Determines how the brush will be aligned with the filled object in the vertical direction. This value is a AlignV enumeration. This field only applies if IsScaled is false.

Brush
The custom fill brush. This can be a SolidBrush, a LinearGradientBrush, or a TextureBrush. This property is only applicable if the Type property is set to Brush.

Clone()()
Typesafe, deep-copy clone method.

Color
The fill color. This property is used as a single color to make a solid fill (Type is Solid), or it can be used in combination with White to make a LinearGradientBrush when Type is Brush and Brush is null.

Draw(Graphics, RectangleF)
Fill the background of the RectangleF area, using the fill type from this Fill.

Draw(Graphics, RectangleF, PointPair)
Fill the background of the RectangleF area, using the fill type from this Fill.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()
Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo instance with the data needed to serialize the target object

GetType()()
Gets the Type of the current instance.
(Inherited from Object.)
IsGradientValueType
Returns a boolean value indicating whether or not this fill is a "Gradient-By-Value" type. This is true for GradientByX, GradientByY, or GradientByZ.

IsScaled
Determines if the brush will be scaled to the bounding box of the filled object. If this value is false, then the brush will only be aligned with the filled object based on the AlignH and AlignV properties.

IsVisible
This property determines the type of color fill. Returns true if the Type property is either Solid or Brush. If set to true, this property will automatically set the Type to Brush. If set to false, this property will automatically set the Type to None. In order to get a regular solid-color fill, you have to manually set Type to Solid.

MakeBrush(RectangleF)
Create a fill brush using current properties. This method will construct a brush based on the settings of Type, Color and Brush. If Type is set to Brush and Brush is null, then a LinearGradientBrush will be created between the colors of White and Color.

MakeBrush(RectangleF, PointPair)
Create a fill brush using current properties. This method will construct a brush based on the settings of Type, Color and Brush. If Type is set to Brush and Brush is null, then a LinearGradientBrush will be created between the colors of White and Color.

MemberwiseClone()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
RangeDefault
The default user-scale value for the gradient-by-value determination. This defines the value that will be used when there is no point value available, or the actual point value is invalid.

RangeMax
The maximum user-scale value for the gradient-by-value determination. This defines the user-scale value for the end of the gradient.

RangeMin
The minimum user-scale value for the gradient-by-value determination. This defines the user-scale value for the start of the gradient.

static memberschema
Current schema value that defines the version of the serialized file

SecondaryValueGradientColor
Gets or sets the secondary color for gradientByValue fills.

ICloneable..::Clone()()
Implement the ICloneable interface in a typesafe manner by just calling the typed version of Clone()()

ToString()()
Returns a String that represents the current Object.
(Inherited from Object.)
Type
Determines the type of fill, which can be either solid color (Solid) or a custom brush (Brush). See Type for more information.

Inheritance Hierarchy
Object
Fill

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621