Class FontArrayWrapper
Class that is created when user accesses the font in a multicell range. Redirects all calls to the fonts of the individual cells.
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation
Assembly: Syncfusion.XlsIO.Portable.dll
Syntax
public class FontArrayWrapper : CommonObject, IDisposable, IFont, IParentApplication, IOptimizedUpdate
Constructors
FontArrayWrapper(IRange)
Create new instance of object.
Declaration
public FontArrayWrapper(IRange range)
Parameters
Type | Name | Description |
---|---|---|
IRange | range | Base range. |
FontArrayWrapper(List<IRange>, IApplication)
Create new instance of object.
Declaration
public FontArrayWrapper(List<IRange> lstRange, IApplication application)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<IRange> | lstRange | |
IApplication | application |
Properties
Bold
True if the font style is italic. Read/write Boolean.
Declaration
public bool Bold { get; set; }
Property Value
Type |
---|
System.Boolean |
Color
Returns or sets the primary color of the object. Read / write ExcelKnownColors.
Declaration
public ExcelKnownColors Color { get; set; }
Property Value
Type |
---|
ExcelKnownColors |
FontName
Returns or sets the font name. Read/write string.
Declaration
public string FontName { get; set; }
Property Value
Type |
---|
System.String |
IsAutoColor
Indicates whether color is automatically selected. Read-only.
Declaration
public bool IsAutoColor { get; }
Property Value
Type |
---|
System.Boolean |
Italic
True if the font is bold. Read/write Boolean.
Declaration
public bool Italic { get; set; }
Property Value
Type |
---|
System.Boolean |
MacOSOutlineFont
True if the font is an outline font. Read/write Boolean.
Declaration
public bool MacOSOutlineFont { get; set; }
Property Value
Type |
---|
System.Boolean |
MacOSShadow
True if the font is a shadow font or if the object has a shadow. Read/write Boolean.
Declaration
public bool MacOSShadow { get; set; }
Property Value
Type |
---|
System.Boolean |
RGBColor
Gets / sets font color. If there is at least one free color, define a new color. If not, search for the closest one in workbook palette.
Declaration
public Color RGBColor { get; set; }
Property Value
Type |
---|
Color |
Size
Returns or sets the size of the font. Read/write Variant.
Declaration
public double Size { get; set; }
Property Value
Type |
---|
System.Double |
Strikethrough
True if the font is struck through with a horizontal line. Read/write Boolean
Declaration
public bool Strikethrough { get; set; }
Property Value
Type |
---|
System.Boolean |
Subscript
True if the font is formatted as subscript. False by default. Read/write Boolean.
Declaration
public bool Subscript { get; set; }
Property Value
Type |
---|
System.Boolean |
Superscript
True if the font is formatted as superscript; False by default. Read/write Boolean.
Declaration
public bool Superscript { get; set; }
Property Value
Type |
---|
System.Boolean |
Underline
Returns or sets the type of underline applied to the font. Can be one of the following ExcelUnderlineStyle constants. Read/write ExcelUnderline.
Declaration
public ExcelUnderline Underline { get; set; }
Property Value
Type |
---|
ExcelUnderline |
VerticalAlignment
Gets / sets font vertical alignment.
Declaration
public ExcelFontVertialAlignment VerticalAlignment { get; set; }
Property Value
Type |
---|
ExcelFontVertialAlignment |
Methods
BeginUpdate()
This method should be called before several updates to the object will take place.
Declaration
public void BeginUpdate()
EndUpdate()
This method should be called after several updates to the object took place.
Declaration
public void EndUpdate()
GenerateNativeFont()
Generates .Net font object corresponding to the current font.
Declaration
public Font GenerateNativeFont()
Returns
Type | Description |
---|---|
Font | Generated .Net font. |