[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.FormattingBag.GetDirectPropertyFormatting

GetDirectPropertyFormatting Method

GetDirectPropertyFormatting<T>(T, string)

Gets the direct formatting property value.

Declaration
protected T GetDirectPropertyFormatting<T>(T defaultValue, string key = "")
Parameters
Type Name Description
T defaultValue

The default value of the property.

string key

The property name. It should start with "Direct" prefix.

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.