LineFormat
LineFormat class
Represents all setting of the line.
Properties
| Name | Type | Description |
|---|---|---|
| CompoundType | int | Specifies the line compound type. The value of the property is MsoLineStyle integer constant. |
| DashStyle | int | Specifies the line dash type. The value of the property is MsoLineDashStyle integer constant. |
| CapType | int | Specifies the ending caps. The value of the property is LineCapType integer constant. |
| JoinType | int | Specifies the line join type. The value of the property is LineJoinType integer constant. |
| BeginArrowheadStyle | int | Gets and sets the begin arrow type of the line. The value of the property is MsoArrowheadStyle integer constant. |
| BeginArrowheadWidth | int | Gets and sets the begin arrow width type of the line. The value of the property is MsoArrowheadWidth integer constant. |
| BeginArrowheadLength | int | Gets and sets the begin arrow length type of the line. The value of the property is MsoArrowheadLength integer constant. |
| EndArrowheadStyle | int | Gets and sets the end arrow type of the line. The value of the property is MsoArrowheadStyle integer constant. |
| EndArrowheadWidth | int | Gets and sets the end arrow width type of the line. The value of the property is MsoArrowheadWidth integer constant. |
| EndArrowheadLength | int | Gets and sets the end arrow length type of the line. The value of the property is MsoArrowheadLength integer constant. |
| Weight | float | Gets or sets the weight of the line in unit of points. |
| Type | int | Gets and sets the fill type. The value of the property is FillType integer constant. NOTE: This member is now obsolete. |
| FillType | int | Gets and sets fill type The value of the property is FillType integer constant. |
| Transparency | float | Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear). |
| SetType | int | Gets the fill format set type. The value of the property is FormatSetType integer constant. NOTE: This member is now obs |
| GradientFill | GradientFill | Gets GradientFill object. |
| TextureFill | TextureFill | Gets TextureFill object. |
| SolidFill | SolidFill | Gets SolidFill object. |
| PatternFill | PatternFill | Gets PatternFill object. |
| GradientColorType | int | Returns the gradient color type for the specified fill. The value of the property is GradientColorType integer constant. |
| GradientStyle | int | Returns the gradient style for the specified fill. The value of the property is GradientStyleType integer constant. |
| GradientColor1 | Color | Returns the gradient color 1 for the specified fill. |
| GradientColor2 | Color | Returns the gradient color 2 for the specified fill. Only when the gradient color type is GradientColorType.TwoColors, t |
| GradientDegree | float | Returns the gradient degree for the specified fill. Only applies for Excel 2007. Can only be a value from 0.0 (dark) thr |
| GradientVariant | int | Returns the gradient variant for the specified fill. Only applies for Excel 2007. Can only be a value from 1 through 4, |
| PresetColor | int | Returns the gradient preset color for the specified fill. The value of the property is GradientPresetType integer consta |
| Texture | int | Represents the texture type for the specified fill. The value of the property is TextureType integer constant. |
| Pattern | int | Represents an area’s display pattern. The value of the property is FillPattern integer constant. |
| PictureFormatType | int | Gets and sets the picture format type. The value of the property is FillPictureType integer constant. |
| Scale | float | Gets and sets the picture format scale. |
| ImageData | byte[] | Gets and sets the picture image data. If the fill format is not custom texture format, returns null. |
Methods
| Name | Description |
|---|---|
| hashCode | Gets the hash code. |
| equals | Determines whether this instance has the same value as another specified LineFormat object. |
| setOneColorGradient | Sets the specified fill to a one-color gradient. Only applies for Excel 2007. |
| setTwoColorGradient | Sets the specified fill to a two-color gradient. Only applies for Excel 2007. |
| setPresetColorGradient | Sets the specified fill to a preset-color gradient. Only applies for Excel 2007. |
LineFormat.CompoundType property
Specifies the line compound type. The value of the property is MsoLineStyle integer constant.
Type: int
LineFormat.DashStyle property
Specifies the line dash type. The value of the property is MsoLineDashStyle integer constant.
Type: int
LineFormat.CapType property
Specifies the ending caps. The value of the property is LineCapType integer constant.
Type: int
LineFormat.JoinType property
Specifies the line join type. The value of the property is LineJoinType integer constant.
Type: int
LineFormat.BeginArrowheadStyle property
Gets and sets the begin arrow type of the line. The value of the property is MsoArrowheadStyle integer constant.
Type: int
LineFormat.BeginArrowheadWidth property
Gets and sets the begin arrow width type of the line. The value of the property is MsoArrowheadWidth integer constant.
Type: int
LineFormat.BeginArrowheadLength property
Gets and sets the begin arrow length type of the line. The value of the property is MsoArrowheadLength integer constant.
Type: int
LineFormat.EndArrowheadStyle property
Gets and sets the end arrow type of the line. The value of the property is MsoArrowheadStyle integer constant.
Type: int
LineFormat.EndArrowheadWidth property
Gets and sets the end arrow width type of the line. The value of the property is MsoArrowheadWidth integer constant.
Type: int
LineFormat.EndArrowheadLength property
Gets and sets the end arrow length type of the line. The value of the property is MsoArrowheadLength integer constant.
Type: int
LineFormat.Weight property
Gets or sets the weight of the line in unit of points.
Type: float
LineFormat.Type property
Gets and sets the fill type. The value of the property is FillType integer constant. NOTE: This member is now obsolete. Instead, please use FillFormat.FillType property instead. This property will be removed 12 months later since July 2016. Aspose apologizes for any inconvenience you may have experienced.
Type: int
LineFormat.FillType property
Gets and sets fill type The value of the property is FillType integer constant.
Type: int
LineFormat.Transparency property
Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).
Type: float
LineFormat.SetType property
Gets the fill format set type. The value of the property is FormatSetType integer constant. NOTE: This member is now obsolete. Instead, please use FillFormat.FillType property instead. This property will be removed 12 months later since July 2016. Aspose apologizes for any inconvenience you may have experienced.
Type: int
LineFormat.GradientFill property
Gets GradientFill object.
Type: GradientFill
LineFormat.TextureFill property
Gets TextureFill object.
Type: TextureFill
LineFormat.SolidFill property
Gets SolidFill object.
Type: SolidFill
LineFormat.PatternFill property
Gets PatternFill object.
Type: PatternFill
LineFormat.GradientColorType property
Returns the gradient color type for the specified fill. The value of the property is GradientColorType integer constant.
Type: int
LineFormat.GradientStyle property
Returns the gradient style for the specified fill. The value of the property is GradientStyleType integer constant.
Type: int
LineFormat.GradientColor1 property
Returns the gradient color 1 for the specified fill.
Type: Color
LineFormat.GradientColor2 property
Returns the gradient color 2 for the specified fill. Only when the gradient color type is GradientColorType.TwoColors, this property is meaningful.
Type: Color
LineFormat.GradientDegree property
Returns the gradient degree for the specified fill. Only applies for Excel 2007. Can only be a value from 0.0 (dark) through 1.0 (light).
Type: float
LineFormat.GradientVariant property
Returns the gradient variant for the specified fill. Only applies for Excel 2007. Can only be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.
Type: int
LineFormat.PresetColor property
Returns the gradient preset color for the specified fill. The value of the property is GradientPresetType integer constant.
Type: int
LineFormat.Texture property
Represents the texture type for the specified fill. The value of the property is TextureType integer constant.
Type: int
LineFormat.Pattern property
Represents an area’s display pattern. The value of the property is FillPattern integer constant.
Type: int
LineFormat.PictureFormatType property
Gets and sets the picture format type. The value of the property is FillPictureType integer constant.
Type: int
LineFormat.Scale property
Gets and sets the picture format scale.
Type: float
LineFormat.ImageData property
Gets and sets the picture image data. If the fill format is not custom texture format, returns null.
Type: byte[]
hashCode()
Gets the hash code.
equals(obj)
Determines whether this instance has the same value as another specified LineFormat object.
| Parameter | Type | Description |
|---|---|---|
| obj | Object | The LineFormat object to compare with this instance. |
Returns: true if the value of the obj parameter is the same as the value of this instance; otherwise, false. If obj is null, this method returns false.
setOneColorGradient(color, degree, style, variant)
Sets the specified fill to a one-color gradient. Only applies for Excel 2007.
| Parameter | Type | Description |
|---|---|---|
| color | Color | One gradient color. |
| degree | float | The gradient degree. Can be a value from 0.0 (dark) through 1.0 (light). |
| style | int | A GradientStyleType value. Gradient shading style. |
| variant | int | The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. |
setTwoColorGradient(color1, color2, style, variant) (1 of 2)
Sets the specified fill to a two-color gradient. Only applies for Excel 2007.
| Parameter | Type | Description |
|---|---|---|
| color1 | Color | One gradient color. |
| color2 | Color | Two gradient color. |
| style | int | A GradientStyleType value. Gradient shading style. |
| variant | int | The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. |
setTwoColorGradient(color1, transparency1, color2, transparency2, style, variant) (2 of 2)
Sets the specified fill to a two-color gradient. Only applies for Excel 2007.
| Parameter | Type | Description |
|---|---|---|
| color1 | Color | One gradient color. |
| transparency1 | float | The degree of transparency of the color1 as a value from 0.0 (opaque) through 1.0 (clear). |
| color2 | Color | Two gradient color. |
| transparency2 | float | The degree of transparency of the color2 as a value from 0.0 (opaque) through 1.0 (clear). |
| style | int | A GradientStyleType value. Gradient shading style. |
| variant | int | The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. |
setPresetColorGradient(presetColor, style, variant)
Sets the specified fill to a preset-color gradient. Only applies for Excel 2007.
| Parameter | Type | Description |
|---|---|---|
| presetColor | int | A GradientPresetType value. Preset color type |
| style | int | A GradientStyleType value. Gradient shading style. |
| variant | int | The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. |