[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.LineFormatBase

Class LineFormatBase

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a base outline formatting that can be applied to an object.

public class LineFormatBase : FormattingBag, IFixedFormattingBag
Inheritance
object
LineFormatBase
Implements
Inherited Members
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()

Properties

Alignment

Gets or sets the pen alignment.

public PenAlignment Alignment { get; set; }

Property Value

PenAlignment

BaseKey

Gets the base (this class) key for formatting properties.

protected override string BaseKey { get; }

Property Value

string

CapType

Gets or sets the ending caps that should be used for this line.

public LineCapType CapType { get; set; }

Property Value

LineCapType

CompoundType

Gets or sets the compound line type.

public CompoundLineType CompoundType { get; set; }

Property Value

CompoundLineType

DashType

Gets or sets the line dash type.

public LineDashType DashType { get; set; }

Property Value

LineDashType

Fill

Gets the fill formatting properties.

public FillFormat Fill { get; }

Property Value

FillFormat

IsFixed

Gets a value indicating whether the formatting is fixed in the class instance level.

If true, any formatting changes on an ancestor level of the same class will be ignored.

If false, changing a property on an ancestor level will apply to this level too.

For example, changing a property of Fill on style level will change that property only for those Runs that have IsFixed equal to false.

public bool IsFixed { get; }

Property Value

bool

JoinType

Gets or sets the line join type.

public LineJoinType JoinType { get; set; }

Property Value

LineJoinType

Width

Gets or sets the line width, in points.

public float Width { get; set; }

Property Value

float

Methods

Clean()

Sets all properties to their default values.

Also sets IsFixed to true if any properties of this class are defined on an ancestor level.

public void Clean()

Equals(object)

public override bool Equals(object fmt)

Parameters

fmt object

Returns

bool

FixInheritedValues()

Fixes all inherited values as "direct" values for this instance.

protected override void FixInheritedValues()

GetHashCode()

public override int GetHashCode()

Returns

int

Reset()

Resets all properties to their inherited values.

Also sets IsFixed to false.

public void Reset()