LineFormat

LineFormat class

Represents all setting of the line.

Properties

NameTypeDescription
CompoundTypeintSpecifies the line compound type. The value of the property is MsoLineStyle integer constant.
DashStyleintSpecifies the line dash type. The value of the property is MsoLineDashStyle integer constant.
CapTypeintSpecifies the ending caps. The value of the property is LineCapType integer constant.
JoinTypeintSpecifies the line join type. The value of the property is LineJoinType integer constant.
BeginArrowheadStyleintGets and sets the begin arrow type of the line. The value of the property is MsoArrowheadStyle integer constant.
BeginArrowheadWidthintGets and sets the begin arrow width type of the line. The value of the property is MsoArrowheadWidth integer constant.
BeginArrowheadLengthintGets and sets the begin arrow length type of the line. The value of the property is MsoArrowheadLength integer constant.
EndArrowheadStyleintGets and sets the end arrow type of the line. The value of the property is MsoArrowheadStyle integer constant.
EndArrowheadWidthintGets and sets the end arrow width type of the line. The value of the property is MsoArrowheadWidth integer constant.
EndArrowheadLengthintGets and sets the end arrow length type of the line. The value of the property is MsoArrowheadLength integer constant.
WeightfloatGets or sets the weight of the line in unit of points.
TypeintGets and sets the fill type. The value of the property is FillType integer constant. NOTE: This member is now obsolete.
FillTypeintGets and sets fill type The value of the property is FillType integer constant.
TransparencyfloatReturns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).
SetTypeintGets the fill format set type. The value of the property is FormatSetType integer constant. NOTE: This member is now obs
GradientFillGradientFillGets GradientFill object.
TextureFillTextureFillGets TextureFill object.
SolidFillSolidFillGets SolidFill object.
PatternFillPatternFillGets PatternFill object.
GradientColorTypeintReturns the gradient color type for the specified fill. The value of the property is GradientColorType integer constant.
GradientStyleintReturns the gradient style for the specified fill. The value of the property is GradientStyleType integer constant.
GradientColor1ColorReturns the gradient color 1 for the specified fill.
GradientColor2ColorReturns the gradient color 2 for the specified fill. Only when the gradient color type is GradientColorType.TwoColors, t
GradientDegreefloatReturns the gradient degree for the specified fill. Only applies for Excel 2007. Can only be a value from 0.0 (dark) thr
GradientVariantintReturns the gradient variant for the specified fill. Only applies for Excel 2007. Can only be a value from 1 through 4,
PresetColorintReturns the gradient preset color for the specified fill. The value of the property is GradientPresetType integer consta
TextureintRepresents the texture type for the specified fill. The value of the property is TextureType integer constant.
PatternintRepresents an area’s display pattern. The value of the property is FillPattern integer constant.
PictureFormatTypeintGets and sets the picture format type. The value of the property is FillPictureType integer constant.
ScalefloatGets and sets the picture format scale.
ImageDatabyte[]Gets and sets the picture image data. If the fill format is not custom texture format, returns null.

Methods

NameDescription
hashCodeGets the hash code.
equalsDetermines whether this instance has the same value as another specified LineFormat object.
setOneColorGradientSets the specified fill to a one-color gradient. Only applies for Excel 2007.
setTwoColorGradientSets the specified fill to a two-color gradient. Only applies for Excel 2007.
setPresetColorGradientSets 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.

ParameterTypeDescription
objObjectThe 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.

ParameterTypeDescription
colorColorOne gradient color.
degreefloatThe gradient degree. Can be a value from 0.0 (dark) through 1.0 (light).
styleintA GradientStyleType value. Gradient shading style.
variantintThe 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.

ParameterTypeDescription
color1ColorOne gradient color.
color2ColorTwo gradient color.
styleintA GradientStyleType value. Gradient shading style.
variantintThe 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.

ParameterTypeDescription
color1ColorOne gradient color.
transparency1floatThe degree of transparency of the color1 as a value from 0.0 (opaque) through 1.0 (clear).
color2ColorTwo gradient color.
transparency2floatThe degree of transparency of the color2 as a value from 0.0 (opaque) through 1.0 (clear).
styleintA GradientStyleType value. Gradient shading style.
variantintThe 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.

ParameterTypeDescription
presetColorintA GradientPresetType value. Preset color type
styleintA GradientStyleType value. Gradient shading style.
variantintThe 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.