[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Reflection

Class Reflection

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

Represents reflection effect that can be applied to an object.

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

Properties

Alignment

Gets or sets the reflection alignment.

The default is null for text and Bottom for drawings.

Note that null cannot be used for drawings.

public RectangleAlignment? Alignment { get; set; }

Property Value

RectangleAlignment?

Angle

Gets or sets the direction to offset the reflection.

Allowed values are from 0 to 359.9, inclusive.

The default is 0.

public float Angle { get; set; }

Property Value

float

Blur

Gets or sets the blur radius of the reflection.

Allowed values are from 0 to 100, inclusive.

The default is 0.

public float Blur { get; set; }

Property Value

float

Distance

Gets or sets a value specifying how far to offset the reflection.

Allowed values are from 0 to 100, inclusive.

The default is 0.

public float Distance { get; set; }

Property Value

float

EndOpacity

Gets or sets the ending reflection opacity.

Allowed values are from 0 to 100, inclusive.

The default is 0.

public float EndOpacity { get; set; }

Property Value

float

EndOpacityPosition

Get or set the end position along the gradient ramp of the end opacity value.

Allowed values are from 0 to 100, inclusive.

The default is 0 for text and 100 for drawings.

public float EndOpacityPosition { get; set; }

Property Value

float

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

OpacityAngle

Gets or sets the direction of the opacity gradient ramp relative to the text.

Allowed values are from 0 to 359.9, inclusive.

The default is 0 for text and 100 for drawings.

public float OpacityAngle { get; set; }

Property Value

float

RotateWithObject

Gets or sets a value indicating whether the reflection rotates along with the object when the object is rotated.

The default is true.

Note that this property cannot be applied for text.

public bool RotateWithObject { get; set; }

Property Value

bool

ScaleX

Gets or sets the horizontal scaling factor of the reflection.

The default is 0 for text and 100 for drawings.

public float ScaleX { get; set; }

Property Value

float

ScaleY

Gets or sets the vertical scaling factor of the reflection.

The default is 0 for text and 100 for drawings.

public float ScaleY { get; set; }

Property Value

float

SkewX

Gets or sets the horizontal skew angle of the reflection.

Allowed values are from -89.9 to 89.9, inclusive.

The default is 0.

public float SkewX { get; set; }

Property Value

float

SkewY

Gets or sets the vertical skew angle of the reflection.

Allowed values are from -89.9 to 89.9, inclusive.

The default is 0.

public float SkewY { get; set; }

Property Value

float

StartOpacity

Gets or sets the starting reflection opacity.

Allowed values are from 0 to 100, inclusive.

The default is 0 for text and 100 for drawings.

public float StartOpacity { get; set; }

Property Value

float

StartOpacityPosition

Get or set the start position along the gradient ramp of the start opacity value.

Allowed values are from 0 to 100, inclusive.

The default is 0.

public float StartOpacityPosition { 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()