共用方式為


Font Constructors

Definition

Overloads

Font()

Initializes a new instance of the Font class.

Font(OpenXmlElement[])

Initializes a new instance of the Font class with the specified child elements.

Font(IEnumerable<OpenXmlElement>)

Initializes a new instance of the Font class with the specified child elements.

Font(String)

Initializes a new instance of the Font class from outer XML.

Font()

Initializes a new instance of the Font class.

public Font ();
Public Sub New ()

Applies to

Font(OpenXmlElement[])

Initializes a new instance of the Font class with the specified child elements.

public Font (params DocumentFormat.OpenXml.OpenXmlElement[] childElements);
new DocumentFormat.OpenXml.Spreadsheet.Font : DocumentFormat.OpenXml.OpenXmlElement[] -> DocumentFormat.OpenXml.Spreadsheet.Font
Public Sub New (ParamArray childElements As OpenXmlElement())

Parameters

childElements
OpenXmlElement[]

Specifies the child elements.

Applies to

Font(IEnumerable<OpenXmlElement>)

Initializes a new instance of the Font class with the specified child elements.

public Font (System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlElement> childElements);
new DocumentFormat.OpenXml.Spreadsheet.Font : seq<DocumentFormat.OpenXml.OpenXmlElement> -> DocumentFormat.OpenXml.Spreadsheet.Font
Public Sub New (childElements As IEnumerable(Of OpenXmlElement))

Parameters

childElements
IEnumerable<OpenXmlElement>

Specifies the child elements.

Applies to

Font(String)

Initializes a new instance of the Font class from outer XML.

public Font (string outerXml);
new DocumentFormat.OpenXml.Spreadsheet.Font : string -> DocumentFormat.OpenXml.Spreadsheet.Font
Public Sub New (outerXml As String)

Parameters

outerXml
String

Specifies the outer XML of the element.

Applies to