Version

SetFontFormatting Method (FormattedFontBase)

Sets all properties of this font to the properties of the specified font.
Syntax
public void SetFontFormatting( 
   IWorkbookFont source
)

Parameters

source
The font whose properties should be copied over to this font.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionsource is null.
System.InvalidOperationException The formatted string or text associated with the font is not assigned to a cell, comment, or shape.
System.InvalidOperationException The font's selection range is outside the valid character range of the associated formatted string or text.
Remarks

Note: default values cannot be used in FormattedString values applied to cells. If this font belongs to a FormattedString which is the value of a cell, any default values on the specified font will be ignored.

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also