[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.FormattingBag

FormattingBag Class

Abstract class that provides base functionality to store and resolve formatting in objects.

Namespace: GrapeCity.Documents.Word
Assembly: DS.Documents.Word.dll
Syntax
public abstract class FormattingBag
Public MustInherit Class FormattingBag

Fields

Name Description
KeyDelimiter

For internal use.

KeyFormat

For internal use.

Properties

Name Description
BaseKey

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

ParentKey

Gets the parent (previous level) key for formatting properties.

RootKey

Gets the root (concatenation of the parent and base) key for formatting properties.

SyncBaseKeys

Gets the base keys to synchronize formatting properties with this object.

Methods

Name Description
ClearFormatting()

Clears direct formatting in the object.

ConcateKeys(string, string)

Concatenates a root key with a short formatting key.

ConcateKeys(string, string[])

Concatenates a root key with a short formatting key array.

ConcateKeys(string[], string)

Concatenates a root key array with a short formatting key.

FixInheritedValues()

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

GetChildKeyPart(string)

Gets the first part of short key from the full key for the formatting property.

GetDirectFormatting<T>(string, T)

Gets the direct formatting property value.

GetDirectPropertyFormatting<T>(T, string)

Gets the direct formatting property value.

GetFormattingKey(string)

Gets a full key for the formatting property.

GetFormatting<T>(string, T)

Gets the formatting property value.

GetFormatting<T>(string, T, out int, bool)

Gets the formatting property value.

GetPropertyFormatting<T>(T, string)

Gets the formatting property value.

GetShortKey(string)

Gets a short key from the full key for the formatting property.

HasDirectFormatting(string)

Gets whether the direct formatting applied for the property.

HasDirectFormatting(string, string)

Gets whether the direct formatting contains any data for an object with specified keys.

HasDirectFormattingWithIgnore(string, string)

Gets whether the attached FormattingBag class has direct formatting in the shape except ignored key.

HasDirectFormattingWithIgnore(string, string, string)

Gets whether the attached FormattingBag class has direct formatting in the shape except ignored key.

HasDirectPropertyFormatting(string)

Gets whether the direct formatting applied for the property.

RemoveDirectFormatting(string)

Resets the direct formatting property.

SetDirectPropertyFormatting(object, string)

Sets the direct formatting property value.

SetDirectPropertyFormattingEx<T>(object, T, string)

Sets the direct formatting property value.

SetFormatting(string, object, bool)

Sets the formatting property value.

SetFormatting<T>(string, object, T, bool)

Sets the formatting property value.

SetPropertyFormatting(object, string)

Sets the formatting property value.

SetPropertyFormattingEx<T>(object, T, string)

Sets the formatting property value.

TryGetDirectFormatting<T>(string, T, out T, bool)

Gets the direct formatting property value.

UpdateVersion(int?)

Updates version of current GrapeCity.Documents.Word.IVersionedFormatting.