[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.FormattingBag.TryGetDirectFormatting

TryGetDirectFormatting Method

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

Gets the direct formatting property value.

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

The short formatting property key.

T defaultValue

The default value of the property.

T value

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

bool isFullKey

Whether the key is full or short.

Returns
Type Description
bool

True if the property key found, otherwise false.

Type Parameters
Name Description
T

A type of the returning value.