[]
        
(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 = "")
Protected Function GetDirectPropertyFormatting(Of T)(defaultValue As T, Optional key As String = "") As T
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.