[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.FormattingBag.GetFormatting

GetFormatting Method

GetFormatting<T>(string, T)

Gets the formatting property value.

Declaration
protected T GetFormatting<T>(string key, T defaultValue)
Protected Function GetFormatting(Of T)(key As String, defaultValue As T) As T
Parameters
Type Name Description
string key

The short formatting property key.

T defaultValue

The default value of the property.

Returns
Type Description
T

A value of the property, if the property key not found, returns defaultValue.

Type Parameters
Name Description
T

A type of the returning value.

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

Gets the formatting property value.

Declaration
protected T GetFormatting<T>(string key, T defaultValue, out int level, bool isFullKey = false)
Protected Function GetFormatting(Of T)(key As String, defaultValue As T, ByRef level As Integer, Optional isFullKey As Boolean = False) As T
Parameters
Type Name Description
string key

The short formatting property key.

T defaultValue

The default value of the property.

int level

Returns the level of inheritance where the property is assigned.

bool isFullKey

Whether the key is full or short.

Returns
Type Description
T

A value of the property, if the property key not found, returns defaultValue.

Type Parameters
Name Description
T

A type of the returning value.