XlsWorkbook Class |
Namespace: Spire.Xls.Core.Spreadsheet
The XlsWorkbook type exposes the following members.
Name | Description | |
---|---|---|
![]() |
ActiveSheet |
Gets the active worksheet.
|
![]() |
ActiveSheetIndex |
Gets or sets the index of the active worksheet in the workbook.
|
![]() |
AddInFunctions |
Returns collection of add-in functions. Read-only.
|
![]() |
Allow3DRangesInDataValidation |
Indicates whether to allow usage of 3D ranges in DataValidation
list property (MS Excel doesn't allow).
|
![]() |
ArgumentsSeparator |
Formula arguments separator.
|
![]() |
Author |
Returns or sets the author of the comment. Read / write String.
|
![]() |
BuiltInDocumentProperties |
Returns collection that represents all the built-in document properties
for the specified workbook. Read-only.
|
![]() |
Charts |
Collection of the chart objects.
|
![]() |
Chartsheets |
Gets the list of chart sheets.
|
![]() |
CodeName |
Gets or sets the code name of the worksheets.
|
![]() |
CurrentHeaderId |
First free shape id.
|
![]() |
CurrentObjectId |
Current object id.
|
![]() |
CurrentShapeId |
First free shape id.
|
![]() |
CustomDocumentProperties |
Returns collection that represents all the custom document properties
for the specified workbook. Read-only.
|
![]() |
DataConns |
Gets the data connections associated with the workbook.
|
![]() |
Date1904 |
Gets or sets a value indicating whether the workbook should use the 1904 date system.
|
![]() |
DefaultXFIndex |
Returns index to the default extended format.
|
![]() |
DetectDateTimeInValue |
Indicates whether library should try to detect string value passed to Value (and Value2)
property as DateTime. Setting this property to false can increase performance greatly for
such operations especially on Framework 1.0 and 1.1. Default value is true.
|
![]() |
DisableMacrosStart |
Gets or sets a value indicating whether macros are disabled at the start.
|
![]() |
DisplayedTab |
Index of the tab which will be displayed on document open.
|
![]() |
DisplayWorkbookTabs |
Indicates whether workbook tabs are visible.
|
![]() |
ExternalLinks |
Gets the collection of external links in the workbook.
|
![]() |
FirstCharSize |
Gets or sets the size of the first character.
|
![]() |
FullFileName |
Gets or sets the full file name of the workbook.
|
![]() |
HasDuplicatedNames |
Gets or sets a value indicating whether the names are duplicated.
|
![]() |
HasMacros |
Gets or sets a value indicating whether the workbook has macros.
|
![]() |
InnerAddInFunctions |
Gets the collection of add-in functions.
|
![]() |
InnerFonts |
Gets the collection of fonts used within the spreadsheet.
|
![]() |
InnerGraphics |
Gets the inner graphics object.
|
![]() |
InnerPalette |
Gets the inner palette of colors.
|
![]() |
InnerWorksheets |
Gets the inner worksheets collection.
|
![]() |
IsCellProtection |
True if cells are protected.
|
![]() |
IsDisplayPrecision |
Indicates whether the workbook uses precision.
|
![]() |
IsHScrollBarVisible |
Gets/Sets value to display horizontal scrollbar
|
![]() |
IsLoaded |
Gets a value indicating whether the object is loaded.
|
![]() |
IsRightToLeft |
Indicates whether worksheet is displayed right to left.
|
![]() |
IsVScrollBarVisible |
Gets/Sets value to display vertical scrollbar
|
![]() |
IsWindowProtection |
True if window is protected.
|
![]() |
Loading |
Gets or sets a value indicating whether the current instance is in a loading state.
This property is internal and can only be accessed within the same assembly.
|
![]() |
MaxColumnCount |
Returns maximum column count for each worksheet in this workbook. Read-only.
|
![]() |
MaxDigitWidth |
Gets the maximum width of a digit in the current font and size.
|
![]() |
MaxIndent |
Gets the maximum indentation level.
|
![]() |
MaxRowCount |
Returns maximum row count for each worksheet in this workbook. Read-only.
|
![]() |
MaxXFCount |
Returns maximum possible number of extended formats. Read-only.
|
![]() |
Names |
For an ReservedHandle object, it returns a Names collection that represents
all the names in the active workbook. For a Workbook object, it returns
a Names collection that represents all the names in the specified
workbook (including all worksheet-specific names).
|
![]() |
ObjectCount |
Gets the count of objects in the collection.
|
![]() |
Objects |
Gets or sets the collection of objects in the workbook.
|
![]() |
OleSize |
Gets or sets the OleSize property.
|
![]() |
Palette |
Gets the color palette.
|
![]() |
Parent |
Reference to Parent object. Read-only.
(Inherited from
XlsObject
.)
|
![]() |
PasswordToOpen |
Gets / sets password to encrypt document.
|
![]() |
ReadOnly |
True if the workbook has been opened as Read-only. Read-only Boolean.
|
![]() |
ReadOnlyRecommended |
True to display a message when the file is opened, recommending that the file be opened as read-only.
|
![]() |
ReferenceCount |
Get quantity of instance references.
(Inherited from
XlsObject
.)
|
![]() |
RowSeparator |
Gets / sets row separator for array parsing.
|
![]() |
Saved |
Gets or sets a value indicating whether the object has been saved.
|
![]() |
Saving |
Gets or sets a value indicating whether the object is currently in a saving state.
|
![]() |
SecondCharSize |
Gets or sets the size of the second character.
|
![]() |
StandardFont |
Gets or sets the standard font for the workbook.
|
![]() |
StandardFontSize |
Gets or sets the standard font size for the workbook.
|
![]() |
StandardRowHeight |
Gets or sets the standard row height for all worksheets in the workbook.
|
![]() |
StandardRowHeightInPixels |
Gets or sets the standard row height in pixels.
|
![]() |
Styles |
Returns a Styles collection that represents all the styles
in the specified workbook. Read-only.
|
![]() |
TabSheets |
Returns collection with all tabsheets in the workbook. Read-only.
|
![]() |
ThrowOnUnknownNames |
ThrowOnUnknownNames
|
![]() |
Version |
Gets or sets the Excel version of the workbook.
|
![]() |
Worksheets |
Returns a Sheets collection that represents all the worksheets
in the specified workbook. Read-only Sheets object.
|
Name | Description | |
---|---|---|
![]() |
Activate |
Obsolete.
Activates the first window associated with the workbook.
|
![]() |
AddFont |
Adds font into collection.
|
![]() |
AddReference |
Increase the quantity of reference. User must use this method when
new wrapper on object is created or reference on object stored.
(Inherited from
XlsObject
.)
|
![]() |
CheckDisposed |
Checks whether object was disposed and throws exception if it was.
(Inherited from
XlsObject
.)
|
![]() |
Clone |
Obsolete.
Creates a deep copy of the current workbook.
|
![]() |
Close |
Closes the object without saving.
|
![]() |
Close(Boolean) |
Closes the object.
|
![]() |
Close(String) |
Closes the object and saves changes into specified file.
|
![]() |
Close(Boolean, String) |
Closes the object.
|
![]() |
ColorDistance |
Calculates distance between two colors.
|
![]() |
ContainsFont |
Determines whether the Workbook contains a specific font.
|
![]() |
ConvertUnits |
Converts units.
|
![]() |
CopyToClipboard |
Obsolete.
Copies the content to the clipboard using the default data format.
|
![]() |
CopyToClipboard(XlsWorksheet) |
Obsolete.
Copies the contents of the specified worksheet to the clipboard.
|
![]() |
CreateFont |
Method to create a font object and register it in the workbook.
|
![]() |
CreateFont(Font) |
Method creates a font object based on native font and register it in the workbook.
|
![]() |
CreateFont(IFont) |
Method that creates font object based on another font object
and registers it in the workbook.
|
![]() |
CreateFont(IFont, Boolean) |
Creates a new font based on the specified base font.
|
![]() |
CreateTemplateMarkersProcessor |
Creates object that can be used for template markers processing.
|
![]() |
DecodeName |
Decodes name encoded in supbook.
|
![]() |
Dispose |
Releases the unmanaged resources used by the current instance and optionally releases the managed resources.
(Overrides
XlsObject
Dispose
.)
|
![]() |
EncodeName |
Encodes a given name by replacing reserved characters and formatting it according to specific rules.
|
![]() |
Equals |
Determines whether the specified object is equal to the current object.
(Inherited from
Object
.)
|
![]() |
FileWidthToPixels |
Converts file width to pixels.
|
![]() |
Finalize |
Destructor. Call dispose method of current object.
(Inherited from
XlsObject
.)
|
![]() |
FindAll(Boolean) |
This method seraches for the all cells with specified bool value.
|
![]() |
FindAll(DateTime) |
This method seraches for the all cells with specified DateTime value.
|
![]() |
FindAll(TimeSpan) |
This method seraches for the all cells with specified TimeSpan value.
|
![]() |
FindAll(Double, FindType) |
This method seraches for the all cells with specified double value.
|
![]() |
FindAll(String, FindType) |
This method seraches for the all cells with specified string value.
|
![]() |
FindOne(Boolean) |
This method seraches for the first cell with specified bool value.
|
![]() |
FindOne(DateTime) |
This method seraches for the first cell with specified DateTime value.
|
![]() |
FindOne(TimeSpan) |
This method seraches for the first cell with specified TimeSpan value.
|
![]() |
FindOne(Double, FindType) |
This method seraches for the first cell with specified double value.
|
![]() |
FindOne(String, FindType) |
This method seraches for the first cell with specified string value.
|
![]() |
FindParent(Type) |
This method is used to find parent with specific type.
(Inherited from
XlsObject
.)
|
![]() |
FindParent( Type ) |
Find parent of object.
(Inherited from
XlsObject
.)
|
![]() |
FindParent(Type, Boolean) |
This method is used to find parent with specific type.
(Inherited from
XlsObject
.)
|
![]() |
FindParents |
Finds parent objects.
(Inherited from
XlsObject
.)
|
![]() |
GetBookIndex |
Retrieves the index of the book at the specified reference index.
|
![]() |
GetHashCode |
Serves as the default hash function.
(Inherited from
Object
.)
|
![]() |
GetMaxDigitWidth |
Returns the maximum digit width of the default font.
|
![]() |
GetNearestColor(Color) |
Gets the nearest color to the specified Color structure
from Workbook palette.
|
![]() |
GetNearestColor(Color, Int32) |
Gets the nearest color to the specified Color structure
from Workbook palette.
|
![]() |
GetNearestColor(Int32, Int32, Int32) |
Gets the nearest color to the specified by red, green, and blue
values color from Workbook palette.
|
![]() |
GetPaletteColor |
Method return Color object from workbook palette by its index.
|
![]() |
GetType |
Gets the
Type
of the current instance.
(Inherited from
Object
.)
|
![]() |
InitializeCollections |
Initializes the collections used by the class.
|
![]() |
IsExternalReference |
Determines if the given reference is an external reference.
|
![]() |
IsFormatted |
Determines if the given XF index is formatted.
|
![]() |
MemberwiseClone |
Creates a shallow copy of the current
Object
.
(Inherited from
Object
.)
|
![]() |
OnDispose |
Method which can be overriden by users to take any specific actions when
object is disposed.
(Inherited from
XlsObject
.)
|
![]() |
Paste |
Obsolete.
Pastes the content from the clipboard to the current context or control.
|
![]() |
PixelsToWidth |
Converts pixels to a width value based on the maximum digit width.
|
![]() |
Protect(Boolean, Boolean) |
Protects the window and/or content based on the provided parameters.
|
![]() |
Protect(Boolean, Boolean, String) |
Protects the workbook based on the provided parameters.
|
![]() |
ReleaseReference |
Decrease quantity of Reference. User must call this method
when freeing resources.
(Inherited from
XlsObject
.)
|
![]() |
Replace(String, DateTime) |
Replaces specified string by specified value.
|
![]() |
Replace(String, Double) |
Replaces specified string by specified value.
|
![]() |
Replace(String, String) |
Replaces specified string by specified value.
|
![]() |
Replace(String, DataColumn, Boolean) |
Replaces specified string by data column values.
|
![]() |
Replace(String, DataTable, Boolean) |
Replaces specified string by data table values.
|
![]() |
Replace(String, Double , Boolean) |
Replaces specified string by data from array.
|
![]() |
Replace(String, Int32 , Boolean) |
Replaces specified string by data from array.
|
![]() |
Replace(String, String , Boolean) |
Replaces specified string by data from array.
|
![]() |
ResetPalette |
Recover palette to default values.
|
![]() |
Save |
Saves changes to the specified workbook.
|
![]() |
SaveAs(Stream) |
Saves changes to the specified stream.
|
![]() |
SaveAs(String) |
Saves the workbook to a file with the specified file name and save type.
|
![]() |
SaveAs(Stream, ExcelSaveType) |
Saves changes to the specified stream.
|
![]() |
SaveAs(Stream, String) |
Saves the active sheet to the specified stream using the given separator.
|
![]() |
SaveAs(String, ExcelSaveType) |
Saves the workbook as a template or a regular file based on the provided save type.
|
![]() |
SaveAs(String, String) |
Saves the current data to a file with the specified file name and separator.
|
![]() |
SaveAs(String, HttpResponse) |
Obsolete.
Saves changes to the specified HttpResponse.
|
![]() |
SaveAs(Stream, ExcelSaveType, ExcelVersion) |
Saves the workbook to the specified stream with the given save type and version.
|
![]() |
SaveAs(String, ExcelSaveType, ExcelVersion) |
Saves the workbook to a file with the specified file name, save type, and Excel version.
|
![]() |
SaveAs(String, ExcelSaveType, HttpResponse) |
Saves changes to the specified HttpResponse.
|
![]() |
SaveAs(String, String, Boolean) |
Saves the active worksheet to a file with the specified file name, separator, and encoding.
|
![]() |
SaveAsEmfStream |
Saves the specified sheet as an EMF stream.
|
![]() |
SaveAsHtml |
Obsolete.
Saves the html files.
|
![]() |
SaveAsImageOrXps(Stream, FileFormat) |
Saves the workbook as an image or XPS file format to the specified stream.
|
![]() |
SaveAsImageOrXps(String, FileFormat) |
Saves the workbook as an image or XPS file.
|
![]() |
SaveAsImages(Single, Single) |
Saves the current figure as an array of images with the specified DPI values.
|
![]() |
SaveAsImages(Int32, Single, Single) |
Saves the specified sheet as images.
|
![]() |
SaveAsImages(Int32, Int32, Int32, Int32, Int32, Single, Single) |
Saves the specified range of cells in the specified sheet as an image.
|
![]() |
SaveChartAsEmfImage |
Saves the specified chart as an EMF image.
|
![]() |
SaveChartAsImage(ChartSheet, ConverterSetting) |
Saves the chart from the specified chart sheet as an image using the provided image or print options.
|
![]() |
SaveChartAsImage(Worksheet, ConverterSetting) |
Saves the chart in the specified worksheet as an image using the provided image or print options.
|
![]() |
SaveChartAsImage(Worksheet, Int32, ConverterSetting) |
Saves the chart at the specified index in the worksheet as an image using the provided image or print options.
|
![]() |
SaveToPdf(Stream) |
Saves the workbook to a PDF file using the specified stream.
|
![]() |
SaveToPdf(String) |
Saves the workbook to a PDF file.
|
![]() |
SaveToXlsm(Stream) |
Saves the workbook to an XLSM file format using the specified stream.
|
![]() |
SaveToXlsm(String) |
Saves the workbook to an XLSM file.
|
![]() |
SetActiveWorksheet |
Sets the active worksheet in the workbook.
|
![]() |
SetChanged |
Sets the saved flag to false, indicating that the data has been changed.
|
![]() |
SetColorOrGetNearest(Color) |
Sets the specified color or retrieves the nearest available color if the exact color is not available.
|
![]() |
SetColorOrGetNearest(Int32, Int32, Int32) |
Sets the specified color using RGB values or retrieves the nearest available color if the exact color is not supported.
|
![]() |
SetMaxDigitWidth |
Sets the maximum digit width.
|
![]() |
SetPaletteColor |
Set user color for specified element in Color table.
|
![]() |
SetParent |
Sets parent of the object.
(Inherited from
XlsObject
.)
|
![]() |
SetSeparators |
Obsolete.
Sets the separators used for parsing arguments and array rows.
|
![]() |
SetWriteProtectionPassword |
Sets the write protection password for the workbook.
|
![]() |
SplitPageInfo |
Splits the page information based on the provided converter settings.
|
![]() |
ToString |
Returns a string that represents the current object.
(Inherited from
Object
.)
|
![]() |
Unprotect |
Unprotects the object.
|
![]() |
Unprotect(String) |
Unprotects the workbook with the specified password.
|
![]() |
WidthToFileWidth |
Converts a width value to a file width value based on a maximum digit width.
|
Name | Description | |
---|---|---|
![]() ![]() |
DEF_BAD_SHEET_NAME |
Ilegal sheet name
|
![]() ![]() |
DEF_COMENT_PARSE_COLOR |
Defines the default color for comment parsing, which is a light gray (RGB: 255, 255, 222).
|
![]() ![]() |
DEF_FIRST_USER_COLOR |
First user-defined color.
|
![]() |
m_bIsDisposed |
Flag which indicates if the object was disposed or not.
(Inherited from
XlsObject
.)
|