C# Class NPOI.XSSF.UserModel.XSSFWorkbook

Inheritance: POIXMLDocument, IWorkbook
Afficher le fichier Open project: tonyqus/npoi Class Usage Examples

Méthodes publiques

Свойство Type Description
DEFAULT_CHARACTER_WIDTH float
PICTURE_TYPE_BMP int
PICTURE_TYPE_DIB int
PICTURE_TYPE_EMF int
PICTURE_TYPE_EPS int
PICTURE_TYPE_GIF int
PICTURE_TYPE_JPEG int
PICTURE_TYPE_PICT int
PICTURE_TYPE_PNG int
PICTURE_TYPE_TIFF int
PICTURE_TYPE_WMF int
PICTURE_TYPE_WPG int

Méthodes publiques

Méthode Description
Add ( ISheet item ) : void
AddPicture ( Stream picStream, int format ) : int
AddPicture ( byte pictureData, PictureType format ) : int
AddPicture ( byte pictureData, int format ) : int
AddToolPack ( NPOI.SS.Formula.Udf.UDFFinder toopack ) : void
Clear ( ) : void
CloneSheet ( int sheetNum ) : ISheet
Contains ( ISheet item ) : bool
CopyTo ( ISheet array, int arrayIndex ) : void
CreateCellStyle ( ) : ICellStyle

Create a new XSSFCellStyle and add it to the workbook's style table

CreateDataFormat ( ) : IDataFormat

Returns the instance of XSSFDataFormat for this workbook.

CreateFont ( ) : IFont

Create a new Font and add it to the workbook's font table

CreateName ( ) : IName
CreateSheet ( ) : ISheet
CreateSheet ( String sheetname ) : ISheet
FindFont ( short boldWeight, short color, short fontHeight, String name, bool italic, bool strikeout, FontSuperScript typeOffset, FontUnderlineType underline ) : IFont
GetAllEmbedds ( ) : List
GetAllPictures ( ) : IList
GetBuiltInName ( String builtInCode, int sheetNumber ) : NPOI.XSSF.UserModel.XSSFName
GetCTWorkbook ( ) : NPOI.OpenXmlFormats.Spreadsheet.CT_Workbook
GetCalculationChain ( ) : NPOI.XSSF.Model.CalculationChain
GetCellStyleAt ( short idx ) : ICellStyle
GetCellStyleAt ( int idx ) : NPOI.XSSF.UserModel.XSSFCellStyle
GetCreationHelper ( ) : ICreationHelper
GetCustomXMLMappings ( ) : List
GetEnumerator ( ) : IEnumerator
GetFontAt ( short idx ) : IFont
GetForceFormulaRecalculation ( ) : bool
GetMapInfo ( ) : NPOI.XSSF.Model.MapInfo
GetName ( String name ) : IName
GetNameAt ( int nameIndex ) : IName
GetNameIndex ( String name ) : int
GetPrintArea ( int sheetIndex ) : String
GetSharedStringSource ( ) : NPOI.XSSF.Model.SharedStringsTable
GetSheet ( String name ) : ISheet
GetSheetAt ( int index ) : ISheet
GetSheetIndex ( ISheet sheet ) : int
GetSheetIndex ( String name ) : int

Returns the index of the sheet by his name (case insensitive match)

GetSheetName ( int sheetIx ) : String
GetStylesSource ( ) : NPOI.XSSF.Model.StylesTable
GetTheme ( ) : NPOI.XSSF.Model.ThemesTable
IndexOf ( ISheet item ) : int
Insert ( int index, ISheet item ) : void
IsMacroEnabled ( ) : bool
IsRevisionLocked ( ) : bool
IsSheetHidden ( int sheetIx ) : bool
IsSheetVeryHidden ( int sheetIx ) : bool
IsStructureLocked ( ) : bool
IsWindowsLocked ( ) : bool
LinkExternalWorkbook ( String name, IWorkbook workbook ) : int
LockRevision ( ) : void
LockStructure ( ) : void
LockWindows ( ) : void
Remove ( ISheet item ) : bool
RemoveAt ( int index ) : void
RemoveName ( String name ) : void
RemoveName ( NPOI.XSSF.UserModel.XSSFName name ) : void
RemoveName ( int nameIndex ) : void
RemovePrintArea ( int sheetIndex ) : void
RemoveSheetAt ( int index ) : void
SetActiveSheet ( int sheetIndex ) : void
SetForceFormulaRecalculation ( bool value ) : void
SetPrintArea ( int sheetIndex, String reference ) : void
SetPrintArea ( int sheetIndex, int startColumn, int endColumn, int startRow, int endRow ) : void
SetSelectedTab ( int index ) : void
SetSheetHidden ( int sheetIx, SheetState state ) : void
SetSheetHidden ( int sheetIx, bool hidden ) : void
SetSheetHidden ( int sheetIx, int hidden ) : void

Hide or unhide a sheet.

SetSheetName ( int sheetIndex, String sheetname ) : void
SetSheetOrder ( String sheetname, int pos ) : void
UnlockRevision ( ) : void
UnlockStructure ( ) : void
UnlockWindows ( ) : void
XSSFWorkbook ( ) : System.Text.RegularExpressions
XSSFWorkbook ( FileInfo file ) : System.Text.RegularExpressions
XSSFWorkbook ( NPOI.OpenXml4Net.OPC.OPCPackage pkg ) : System.Text.RegularExpressions
XSSFWorkbook ( Stream is1 ) : System.Text.RegularExpressions
XSSFWorkbook ( String path ) : System.Text.RegularExpressions
this ( int index ) : ISheet

Méthodes protégées

Méthode Description
AddPivotCache ( String rId ) : NPOI.OpenXmlFormats.Spreadsheet.CT_PivotCache
BeforeDocumentRead ( ) : void
Commit ( ) : void
CreateDialogsheet ( String sheetname, NPOI.OpenXmlFormats.Spreadsheet.CT_Dialogsheet dialogsheet ) : NPOI.XSSF.UserModel.XSSFDialogsheet
newPackage ( ) : NPOI.OpenXml4Net.OPC.OPCPackage

Private Methods

Méthode Description
AddSheet ( String sheetname ) : NPOI.OpenXmlFormats.Spreadsheet.CT_Sheet
ContainsSheet ( String name, int excludeSheetIdx ) : bool
CreateBuiltInName ( String builtInName, int sheetNumber ) : NPOI.XSSF.UserModel.XSSFName
CreateProtectionFieldIfNotPresent ( ) : void
GetReferenceBuiltInRecord ( String sheetName, int startC, int endC, int startR, int endR ) : String
GetReferencePrintArea ( String sheetName, int startC, int endC, int startR, int endR ) : String
GetUDFFinder ( ) : NPOI.SS.Formula.Udf.UDFFinder
IsDate1904 ( ) : bool
OnDeleteFormula ( NPOI.XSSF.UserModel.XSSFCell cell ) : void
OnDocumentRead ( ) : void
OnSheetDelete ( int index ) : void
OnWorkbookCreate ( ) : void
ReprocessNamedRanges ( ) : void
SaveCalculationChain ( ) : void
SaveNamedRanges ( ) : void
SetRepeatingRowsAndColumns ( int sheetIndex, int startColumn, int endColumn, int startRow, int endRow ) : void
ValidateSheetIndex ( int index ) : void
WorkbookProtectionPresent ( ) : bool

Method Details

Add() public méthode

public Add ( ISheet item ) : void
item ISheet
Résultat void

AddPicture() public méthode

public AddPicture ( Stream picStream, int format ) : int
picStream Stream
format int
Résultat int

AddPicture() public méthode

public AddPicture ( byte pictureData, PictureType format ) : int
pictureData byte
format PictureType
Résultat int

AddPicture() public méthode

public AddPicture ( byte pictureData, int format ) : int
pictureData byte
format int
Résultat int

AddPivotCache() protected méthode

protected AddPivotCache ( String rId ) : NPOI.OpenXmlFormats.Spreadsheet.CT_PivotCache
rId String
Résultat NPOI.OpenXmlFormats.Spreadsheet.CT_PivotCache

AddToolPack() public méthode

public AddToolPack ( NPOI.SS.Formula.Udf.UDFFinder toopack ) : void
toopack NPOI.SS.Formula.Udf.UDFFinder
Résultat void

BeforeDocumentRead() protected méthode

protected BeforeDocumentRead ( ) : void
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

CloneSheet() public méthode

public CloneSheet ( int sheetNum ) : ISheet
sheetNum int
Résultat ISheet

Commit() protected méthode

protected Commit ( ) : void
Résultat void

Contains() public méthode

public Contains ( ISheet item ) : bool
item ISheet
Résultat bool

CopyTo() public méthode

public CopyTo ( ISheet array, int arrayIndex ) : void
array ISheet
arrayIndex int
Résultat void

CreateCellStyle() public méthode

Create a new XSSFCellStyle and add it to the workbook's style table
public CreateCellStyle ( ) : ICellStyle
Résultat ICellStyle

CreateDataFormat() public méthode

Returns the instance of XSSFDataFormat for this workbook.
public CreateDataFormat ( ) : IDataFormat
Résultat IDataFormat

CreateDialogsheet() protected méthode

protected CreateDialogsheet ( String sheetname, NPOI.OpenXmlFormats.Spreadsheet.CT_Dialogsheet dialogsheet ) : NPOI.XSSF.UserModel.XSSFDialogsheet
sheetname String
dialogsheet NPOI.OpenXmlFormats.Spreadsheet.CT_Dialogsheet
Résultat NPOI.XSSF.UserModel.XSSFDialogsheet

CreateFont() public méthode

Create a new Font and add it to the workbook's font table
public CreateFont ( ) : IFont
Résultat IFont

CreateName() public méthode

public CreateName ( ) : IName
Résultat IName

CreateSheet() public méthode

public CreateSheet ( ) : ISheet
Résultat ISheet

CreateSheet() public méthode

public CreateSheet ( String sheetname ) : ISheet
sheetname String
Résultat ISheet

FindFont() public méthode

public FindFont ( short boldWeight, short color, short fontHeight, String name, bool italic, bool strikeout, FontSuperScript typeOffset, FontUnderlineType underline ) : IFont
boldWeight short
color short
fontHeight short
name String
italic bool
strikeout bool
typeOffset FontSuperScript
underline FontUnderlineType
Résultat IFont

GetAllEmbedds() public méthode

public GetAllEmbedds ( ) : List
Résultat List

GetAllPictures() public méthode

public GetAllPictures ( ) : IList
Résultat IList

GetBuiltInName() public méthode

public GetBuiltInName ( String builtInCode, int sheetNumber ) : NPOI.XSSF.UserModel.XSSFName
builtInCode String
sheetNumber int
Résultat NPOI.XSSF.UserModel.XSSFName

GetCTWorkbook() public méthode

public GetCTWorkbook ( ) : NPOI.OpenXmlFormats.Spreadsheet.CT_Workbook
Résultat NPOI.OpenXmlFormats.Spreadsheet.CT_Workbook

GetCalculationChain() public méthode

public GetCalculationChain ( ) : NPOI.XSSF.Model.CalculationChain
Résultat NPOI.XSSF.Model.CalculationChain

GetCellStyleAt() public méthode

public GetCellStyleAt ( short idx ) : ICellStyle
idx short
Résultat ICellStyle

GetCellStyleAt() public méthode

public GetCellStyleAt ( int idx ) : NPOI.XSSF.UserModel.XSSFCellStyle
idx int
Résultat NPOI.XSSF.UserModel.XSSFCellStyle

GetCreationHelper() public méthode

public GetCreationHelper ( ) : ICreationHelper
Résultat ICreationHelper

GetCustomXMLMappings() public méthode

public GetCustomXMLMappings ( ) : List
Résultat List

GetEnumerator() public méthode

public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetFontAt() public méthode

public GetFontAt ( short idx ) : IFont
idx short
Résultat IFont

GetForceFormulaRecalculation() public méthode

public GetForceFormulaRecalculation ( ) : bool
Résultat bool

GetMapInfo() public méthode

public GetMapInfo ( ) : NPOI.XSSF.Model.MapInfo
Résultat NPOI.XSSF.Model.MapInfo

GetName() public méthode

public GetName ( String name ) : IName
name String
Résultat IName

GetNameAt() public méthode

public GetNameAt ( int nameIndex ) : IName
nameIndex int
Résultat IName

GetNameIndex() public méthode

public GetNameIndex ( String name ) : int
name String
Résultat int

GetPrintArea() public méthode

public GetPrintArea ( int sheetIndex ) : String
sheetIndex int
Résultat String

GetSharedStringSource() public méthode

public GetSharedStringSource ( ) : NPOI.XSSF.Model.SharedStringsTable
Résultat NPOI.XSSF.Model.SharedStringsTable

GetSheet() public méthode

public GetSheet ( String name ) : ISheet
name String
Résultat ISheet

GetSheetAt() public méthode

public GetSheetAt ( int index ) : ISheet
index int
Résultat ISheet

GetSheetIndex() public méthode

public GetSheetIndex ( ISheet sheet ) : int
sheet ISheet
Résultat int

GetSheetIndex() public méthode

Returns the index of the sheet by his name (case insensitive match)
public GetSheetIndex ( String name ) : int
name String the sheet name
Résultat int

GetSheetName() public méthode

public GetSheetName ( int sheetIx ) : String
sheetIx int
Résultat String

GetStylesSource() public méthode

public GetStylesSource ( ) : NPOI.XSSF.Model.StylesTable
Résultat NPOI.XSSF.Model.StylesTable

GetTheme() public méthode

public GetTheme ( ) : NPOI.XSSF.Model.ThemesTable
Résultat NPOI.XSSF.Model.ThemesTable

IndexOf() public méthode

public IndexOf ( ISheet item ) : int
item ISheet
Résultat int

Insert() public méthode

public Insert ( int index, ISheet item ) : void
index int
item ISheet
Résultat void

IsMacroEnabled() public méthode

public IsMacroEnabled ( ) : bool
Résultat bool

IsRevisionLocked() public méthode

public IsRevisionLocked ( ) : bool
Résultat bool

IsSheetHidden() public méthode

public IsSheetHidden ( int sheetIx ) : bool
sheetIx int
Résultat bool

IsSheetVeryHidden() public méthode

public IsSheetVeryHidden ( int sheetIx ) : bool
sheetIx int
Résultat bool

IsStructureLocked() public méthode

public IsStructureLocked ( ) : bool
Résultat bool

IsWindowsLocked() public méthode

public IsWindowsLocked ( ) : bool
Résultat bool

LinkExternalWorkbook() public méthode

public LinkExternalWorkbook ( String name, IWorkbook workbook ) : int
name String
workbook IWorkbook
Résultat int

LockRevision() public méthode

public LockRevision ( ) : void
Résultat void

LockStructure() public méthode

public LockStructure ( ) : void
Résultat void

LockWindows() public méthode

public LockWindows ( ) : void
Résultat void

Remove() public méthode

public Remove ( ISheet item ) : bool
item ISheet
Résultat bool

RemoveAt() public méthode

public RemoveAt ( int index ) : void
index int
Résultat void

RemoveName() public méthode

public RemoveName ( String name ) : void
name String
Résultat void

RemoveName() public méthode

public RemoveName ( NPOI.XSSF.UserModel.XSSFName name ) : void
name NPOI.XSSF.UserModel.XSSFName
Résultat void

RemoveName() public méthode

public RemoveName ( int nameIndex ) : void
nameIndex int
Résultat void

RemovePrintArea() public méthode

public RemovePrintArea ( int sheetIndex ) : void
sheetIndex int
Résultat void

RemoveSheetAt() public méthode

public RemoveSheetAt ( int index ) : void
index int
Résultat void

SetActiveSheet() public méthode

public SetActiveSheet ( int sheetIndex ) : void
sheetIndex int
Résultat void

SetForceFormulaRecalculation() public méthode

public SetForceFormulaRecalculation ( bool value ) : void
value bool
Résultat void

SetPrintArea() public méthode

public SetPrintArea ( int sheetIndex, String reference ) : void
sheetIndex int
reference String
Résultat void

SetPrintArea() public méthode

public SetPrintArea ( int sheetIndex, int startColumn, int endColumn, int startRow, int endRow ) : void
sheetIndex int
startColumn int
endColumn int
startRow int
endRow int
Résultat void

SetSelectedTab() public méthode

public SetSelectedTab ( int index ) : void
index int
Résultat void

SetSheetHidden() public méthode

public SetSheetHidden ( int sheetIx, SheetState state ) : void
sheetIx int
state SheetState
Résultat void

SetSheetHidden() public méthode

public SetSheetHidden ( int sheetIx, bool hidden ) : void
sheetIx int
hidden bool
Résultat void

SetSheetHidden() public méthode

Hide or unhide a sheet.
public SetSheetHidden ( int sheetIx, int hidden ) : void
sheetIx int The sheet number
hidden int 0 for not hidden, 1 for hidden, 2 for very hidden
Résultat void

SetSheetName() public méthode

public SetSheetName ( int sheetIndex, String sheetname ) : void
sheetIndex int
sheetname String
Résultat void

SetSheetOrder() public méthode

public SetSheetOrder ( String sheetname, int pos ) : void
sheetname String
pos int
Résultat void

UnlockRevision() public méthode

public UnlockRevision ( ) : void
Résultat void

UnlockStructure() public méthode

public UnlockStructure ( ) : void
Résultat void

UnlockWindows() public méthode

public UnlockWindows ( ) : void
Résultat void

XSSFWorkbook() public méthode

public XSSFWorkbook ( ) : System.Text.RegularExpressions
Résultat System.Text.RegularExpressions

XSSFWorkbook() public méthode

public XSSFWorkbook ( FileInfo file ) : System.Text.RegularExpressions
file System.IO.FileInfo
Résultat System.Text.RegularExpressions

XSSFWorkbook() public méthode

public XSSFWorkbook ( NPOI.OpenXml4Net.OPC.OPCPackage pkg ) : System.Text.RegularExpressions
pkg NPOI.OpenXml4Net.OPC.OPCPackage
Résultat System.Text.RegularExpressions

XSSFWorkbook() public méthode

public XSSFWorkbook ( Stream is1 ) : System.Text.RegularExpressions
is1 Stream
Résultat System.Text.RegularExpressions

XSSFWorkbook() public méthode

public XSSFWorkbook ( String path ) : System.Text.RegularExpressions
path String
Résultat System.Text.RegularExpressions

newPackage() protected static méthode

protected static newPackage ( ) : NPOI.OpenXml4Net.OPC.OPCPackage
Résultat NPOI.OpenXml4Net.OPC.OPCPackage

this() public méthode

public this ( int index ) : ISheet
index int
Résultat ISheet

Property Details

DEFAULT_CHARACTER_WIDTH public_oe static_oe property

public static float DEFAULT_CHARACTER_WIDTH
Résultat float

PICTURE_TYPE_BMP public_oe static_oe property

public static int PICTURE_TYPE_BMP
Résultat int

PICTURE_TYPE_DIB public_oe static_oe property

public static int PICTURE_TYPE_DIB
Résultat int

PICTURE_TYPE_EMF public_oe static_oe property

public static int PICTURE_TYPE_EMF
Résultat int

PICTURE_TYPE_EPS public_oe static_oe property

public static int PICTURE_TYPE_EPS
Résultat int

PICTURE_TYPE_GIF public_oe static_oe property

public static int PICTURE_TYPE_GIF
Résultat int

PICTURE_TYPE_JPEG public_oe static_oe property

public static int PICTURE_TYPE_JPEG
Résultat int

PICTURE_TYPE_PICT public_oe static_oe property

public static int PICTURE_TYPE_PICT
Résultat int

PICTURE_TYPE_PNG public_oe static_oe property

public static int PICTURE_TYPE_PNG
Résultat int

PICTURE_TYPE_TIFF public_oe static_oe property

public static int PICTURE_TYPE_TIFF
Résultat int

PICTURE_TYPE_WMF public_oe static_oe property

public static int PICTURE_TYPE_WMF
Résultat int

PICTURE_TYPE_WPG public_oe static_oe property

public static int PICTURE_TYPE_WPG
Résultat int