ODF .NET Class Library
Show/Hide TOC

# LinearGradient Class

Define linear gradients to fill or stroke graphical elements.

## Definition

Namespace: Independentsoft.Office.Odf.Styles
Assembly: Independentsoft.Office.Odf (in Independentsoft.Office.Odf.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public class LinearGradient

VB

    Public Class LinearGradient

Inheritance
  Object LinearGradient

## Constructors

LinearGradient | Initializes a new instance of the LinearGradient class.

## Properties

DisplayName | Specifies the name of a gradient.
GradientTransform | Contains the definition of an optional additional transformation from the gradient coordinate system onto the target coordinate system.
GradientUnits | Specifies the coordinate system.
Name | Specifies the name by which a element can be referenced.
SpreadMethod | Specifies what happens if the gradient starts or ends inside the bounds of the target rectangle.
Stops | Specifies a collection of SvgStop objects.
X1 | Specifies the x1-axis coordinate of the start of the vector gradient onto which the elements are mapped.
X2 | Specifies the x2-axis coordinate of the start of the vector gradient onto which the elements are mapped.
Y1 | Specifies the y1-axis coordinate of the start of the vector gradient onto which the elements are mapped.
Y2 | Specifies the y2-axis coordinate of the start of the vector gradient onto which the elements are mapped.

## Methods

Clone | Creates a new object that is a deep copy of the current instance.
Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetHashCode | (Inherited from Object)
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
ToString | Converts the value of the current LinearGradient object to its equivalent string representation. (Overrides ObjectToString)

## See Also

#### Reference

Independentsoft.Office.Odf.Styles Namespace