[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.FormattingBag.SetPropertyFormattingEx

SetPropertyFormattingEx Method

SetPropertyFormattingEx<T>(object, T, string)

Sets the formatting property value.

Declaration
protected void SetPropertyFormattingEx<T>(object value, T defaultValue, string key = "")
Protected Sub SetPropertyFormattingEx(Of T)(value As Object, defaultValue As T, Optional key As String = "")
Parameters
Type Name Description
object value

The formatting property value.

T defaultValue

The default value of the property.

string key

The short formatting property key to set value.

Type Parameters
Name Description
T

A type of the value.

Remarks

If value equals default value then formatting will be removed.