'Declaration Public Overloads Function AddUserDefinedStyle( _ ByVal styleFormat As IWorksheetCellFormat, _ ByVal name As String _ ) As WorkbookStyle
public WorkbookStyle AddUserDefinedStyle( IWorksheetCellFormat styleFormat, string name )
Exception | Description |
---|---|
System.ArgumentNullException | name is null or empty. |
System.ArgumentNullException | name is longer than 255 characters. |
System.ArgumentException | A style already exists with the a name of name. Names are compared case-insensitively. |
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2