Copyright © 1987-2006 ComponentOne LLC. All rights reserved. Corporate Headquarters ComponentOne LLC 201 South Highland Avenue 3rd Floor Pittsburgh, PA 15206 · USA Internet:
[email protected] Web site: http://www.componentone.com Sales E-mail:
[email protected] Telephone: 1.800.858.2739 or 1.412.681.4343 (Pittsburgh, PA USA Office) Technical Support See Technical Support in this manual for information on obtaining technical support. Trademarks ComponentOne XLS for .NET and the ComponentOne XLS for .NET logo are trademarks, and ComponentOne is a registered trademark of ComponentOne LLC. All other trademarks used herein are the properties of their respective owners. Warranty ComponentOne warrants that the original CD (or diskettes) are free from defects in material and workmanship, assuming normal use, for a period of 90 days from the date of purchase. If a defect occurs during this time, you may return the defective CD (or disk) to ComponentOne, along with a dated proof of purchase, and ComponentOne will replace it at no charge. After 90 days, you can obtain a replacement for a defective CD (or disk) by sending it and a check for $25 (to cover postage and handling) to ComponentOne. Except for the express warranty of the original CD (or disks) set forth here, ComponentOne makes no other warranties, express or implied. Every attempt has been made to ensure that the information contained in this manual is correct as of the time it was written. We are not responsible for any errors or omissions. ComponentOne’s liability is limited to the amount you paid for the product. ComponentOne is not liable for any special, consequential, or other damages for any reason. Copying and Distribution While you are welcome to make backup copies of the software for your own use and protection, you are not permitted to make copies for the use of anyone else. We put a lot of time and effort into creating this product, and we appreciate your support in seeing that it is used by licensed users only. Please read End-User License Agreement forComponentOne Software and Redistributable Files sections in this manual before copying and redistributing any ComponentOne XLS for .NET files. · iii Table of Contents Table of Contents ................................................................................................................iii Welcome to ComponentOne XLS for .NET ................................................................................ 1 What's New in ComponentOne XLS for .NET .......................................................................................1 Installing XLS for .NET.........................................................................................................................2 END-USER LICENSE AGREEMENT FOR COMPONENTONE SOFTWARE..................................3 Licensing FAQs.....................................................................................................................................9 Redistributable Files ............................................................................................................................12 Technical Support................................................................................................................................12 Namespaces ........................................................................................................................................13 Adding a Reference to the C1Excel Assembly.......................................................................................14 Migrating a C1XLS Project to Visual Studio 2005.................................................................................15 Overview...........................................................................................................................19 Using C1XLS......................................................................................................................21 Creating Documents ............................................................................................................................21 Worksheets..........................................................................................................................................24 Rows and Columns..............................................................................................................................25 Cells....................................................................................................................................................25 Styles ..................................................................................................................................................25 C1XLS Samples...................................................................................................................27 C# Samples .........................................................................................................................................27 C1Excel Frequently Asked Questions .......................................................................................27 C1Excel Task-Based Help ......................................................................................................29 Adding Content to a Workbook ...........................................................................................................29 Formatting Cells ..................................................................................................................................30 Copying Rows from One Book to Another ...........................................................................................32 C1.C1Excel.2 Assembly ........................................................................................................35 C1.C1Excel Namespace ........................................................................................................35 C1.C1Excel Hierarchy .........................................................................................................................36 C1XLBook Class .................................................................................................................................37 XLAlignHorzEnum Enumeration ........................................................................................................44 XLAlignVertEnum Enumeration .........................................................................................................45 XLCell Class .......................................................................................................................................45 XLCellRange Class..............................................................................................................................49 XLCellRangeCollection Class ..............................................................................................................55 XLColumn Class .................................................................................................................................62 XLColumnCollection Class .................................................................................................................66 XLDiagonalFlags Enumeration............................................................................................................75 XLLineStyleEnum Enumeration ..........................................................................................................76 XLPatternEnum Enumeration .............................................................................................................76 XLPrintSettings Class ..........................................................................................................................78 XLRow Class ......................................................................................................................................89 XLRowCollection Class.......................................................................................................................92 XLSheet Class ................................................................................................................................... 102 XLSheetCollection Class.................................................................................................................... 112 XLStyle Class .................................................................................................................................... 125 Index .............................................................................................................................. 143 . NET Welcome to ComponentOne XLS™ for . PA 15206 • USA 412. Feature Overview Support has been added for external references.NET This documentation was last revised on September 28.1. This support allows C1Excel to load “template” books.3.4343 412. XLS for .Frozen Property Description This property allows the creation of non-scrollable columns. An extra check has been added to the WRITEACCESS reader to allow reading of poorly written files created with Java Excel API v2.NET (C1XLS) allows you to read and write Microsoft Excel files from your applications. Description This property allows the creation of non-scrollable rows.What's New in ComponentOne XLS for . Like formulas.C1Excel component: XLColumnCollection Class XLColumnCollection.37) Class Members Below is the most recent member added to the C1. ComponentOne has a user-friendly distribution policy.componentone. and then save them back.NET now writes MULRK records.NET to try for as long as they wish. filters. XLS for . .com What's New in ComponentOne XLS for . We want every programmer to obtain a copy of XLS for . which allows you to save smaller xls files. but not exposed through the object model. We are confident that you will like XLS for .20053.NET · 1 Welcome to ComponentOne XLS for . images. (Version: 1. or ideas for new controls.681. and conditional formatting. 2005. page breaks. The only restriction is that unlicensed copies of XLS for .NET.NET.4384 (Fax) http://www. please call us or write: Corporate Headquarters ComponentOne LLC 201 South Highland Avenue 3rd Floor Pittsburgh. If you have any suggestions or ideas for new features that you'd like to see included in a future version.5. these are read and saved.NET will display a ComponentOne banner every time they are loaded to remind developers to license the product. Those who like the product and find it useful may buy a license for a reasonable price.Frozen Property XLRowCollection Class XLRowCollection.681. make changes. This directory contains the following subdirectories: bin Common Help C1Excel Contains copies of all binaries (DLLs.NET Setup Files The installation program will create the following directory: C:\Program Files\ComponentOne Studio.NET Environments (Visual Studio 2005): . System Requirements • Operating Systems: .C# .NET • • Hard Disk Space: 4 MB of hard disk space for storage of the software Disc Drive: CD or DVD-ROM drive if installing from CD Installing Demonstration Versions If you wish to try XLS for . follow the steps through the installation wizard and use the default serial number.NET Framework1. Contains support and data files that are used by many of the demo programs.Visual Basic .Windows 2003 Server .NET Framework 1.Delphi • .Windows NT 4 • .0 .Visual Basic . The only difference between unregistered (demonstration) and registered (purchased) versions of our products is that registered versions will stamp every application you compile so a ComponentOne banner will not appear when your users run the applications. EXEs) in the ComponentOne Visual Studio. Installing XLS for . sp1..Windows 2000 . Contains online documentation for all Studio components.NET package.Windows XP.NET.1 .2 · Welcome to ComponentOne XLS for .NET . XLS for . .NET Framework 2..C# .NET or any of our other products and do not have a registration key. sp2 Environments: .NET The following sections provide helpful information on installing XLS for ..Clone Method Description This method can be used to create copies of “template” sheets.NET XLSheet Class XLSheet.NET.0 .NET . Contains samples and tutorials for the C1Excel component. If you do not agree with any of the terms herewith and. Return policies may vary among resellers. 3) anything in any form whatsoever intended to be used with or in conjunction with the SOFTWARE. You should read this EULA carefully and treat it as valuable property. By signifying your acceptance of the terms of this EULA. Definitions. To return the product directly to C1. then "you" and "your" mean your principal. and hereby are. legally bound to this EULA to the same extent as if C1 and you physically signed this EULA. this EULA grants you two licenses: 1) a license to use the SOFTWARE to develop other software products (the "Development License"). copying. installation has begun or has been completed. including the proof of purchase. If you are acting as an agent of a company or another legal person. even if you are acting as an agent for another. time being of the essence. As provided in more detail below. By installing. importantly. YOUR LICENSE TO DEVELOP AND TO DISTRIBUTE. 2. Software Covered by this EULA. you may not install or use the SOFTWARE. such as copyright infringement. This EULA governs your use of the ComponentOne. updates and/or upgrades thereto. databases. the "Licenses") are explained and defined in more detail below. image or executable files. the entity or other legal person for whom you are acting. If the place of business from which you purchased the SOFTWARE does not honor a full refund for a period of thirty (30) days from the date of purchase. therefore you must comply with the return policies of your supplier as you agreed at the point of purchase. However. Select ComponentOne XLS for . These licenses (individually and collectively. or otherwise using the SOFTWARE. electronic and online) and printed materials (the "Documentation"). The return must be postage-prepaid. open the Control Panel and select the Add or Remove Programs. THIS EULA. as the case may be. data engines. and post-marked within thirty (30) days from the proof of purchase. the "SOFTWARE"). to the extent provided by C1: 1) any revisions. This EULA is a Legally Binding Agreement Between You and C1. 1.NET To uninstall XLS for . The term "SOFTWARE" includes. documentation (including physical.END-USER LICENSE AGREEMENT FOR COMPONENTONE SOFTWARE · 3 Uninstalling XLS for . 2) any data. and 4) any associated media. you agree to be bound by all the terms and conditions of this EULA. II. for whatever reason. If you do not agree to all of such terms and conditions. 1. you should cancel installation or un-install the SOFTWARE. or similar items customarily used or distributed with computer software products. END-USER LICENSE AGREEMENT FOR COMPONENTONE SOFTWARE IMPORTANT-READ CAREFULLY: This End User License Agreement (this "EULA") contains the terms and conditions that govern your use of the SOFTWARE (as defined below) and imposes material limitations to your rights. you may still be personally liable for violation of federal and State laws. and 2) a license to use and/or distribute the Developed Software (the "Distribution License"). I. you intend to be. computer software. The return option to C1 is only available to the original purchaser of an unopened factory packaged item. The following terms have the respective meanings as used in this EULA: . LLC ("C1") software product(s) enclosed or otherwise accompanied herewith (individually and collectively.NET and click the Remove button. you should promptly return the SOFTWARE to the place of business from which you obtained it in accordance with any return policies of such place of business.NET. such as an officer or other employee acting for your employer. you must first obtain a Return Authorization Number by contacting C1. you may then return the SOFTWARE directly to C1 for a refund provided that such returns is authorized within the same thirty (30) days time period. Furthermore. and you must forward to C1 all items purchased. such as flow charts. and test Developed Software. toll charges may apply. are specifically connected to it through either an intranet or the Internet. "Developed Web Server Software" means those Developed Software products that reside logically or physically on at least one Web Server and are operated (meaning the computer software instruction set is carried out) by the Web Server's central processing unit(s) (CPU).NET "Network Server" means a computer with one or more computer central processing units (CPU's) that operates for the purpose of serving other computers logically or physically connected to it. The SOFTWARE is licensed to you on a Developer Seat License basis. and only for so long as. YOU ACKNOWLEDGE AND AGREE . as the case may be. 2) the user is the primary User to whom the license has been granted. None of this information contains personally identifiable information nor can they be used to identify any personal information about you or any information you store in your computer. other computers connected to it on an internal network. intranet or the Internet. You are hereby granted a limited. documents and materials in support of the development effort of the SOFTWARE. whether the additional developers are accessing the SOFTWARE in a stand-alone environment or on a computer network. The term "Source Code" includes. 2. You may need to re-verify the SOFTWARE if you modify your computer hardware. Your Development License. You may not network the SOFTWARE or any component part of it. royalty-free. "Web Server" means a type of Network Server that serves other computers which. Developer Seat License basis means that you may perform an installation of the SOFTWARE for use in designing. Product verification is based on the exchange of information between your computer and C1. You may need to verify the SOFTWARE through the use of the Internet. so long as 1) such computer/computers is/are used only by one single Developer at any given time and not concurrently and. such as a printed listing of such a program written in a high-level computer language. YOU AGREE THAT C1 MAY USE SUCH MEASURES AND YOU AGREE TO FOLLOW ANY REQUIREMENTS REGARDING SUCH TECHNOLOGICAL MEASURES. "Developer Seat License" means that each Developer using or otherwise accessing the programmatic interface or the SOFTWARE must obtain the right to do so by purchasing a separate End User License. you fully comply with all terms and conditions of this EULA.4 · Welcome to ComponentOne XLS for . you may not install or use the SOFTWARE on a computer that is a network server or a computer at which the SOFTWARE is used by more than one Developer. non-exclusive right to use the SOFTWARE to design. The license rights granted under this Agreement may be limited to a specified number of days after you first install the SOFTWARE unless you supply information required to license or verify your licensed copy. You must purchase another separate license to the SOFTWARE in order to add additional developer seats. within the time and the manner described during the SOFTWARE setup sequence and/or in the dialog boxes appearing during use of the SOFTWARE. testing and creating Developed Software by a single Developer on one or more computers. pseudo code and program notes. each with a single set of input devices. but not limited to. "Redistributable Files" means the SOFTWARE files or other portions of the SOFTWARE that are provided by C1 and are identified as such in the Documentation for distribution by you with the Developed Software. "Developed Software" means those computer software products that are developed by or through the use of the SOFTWARE. where it is or may be used by more than one Developer unless you purchase an additional Development License for each Developer. including. Conversely. YOU ACKNOWLEDGE AND UNDERSTAND THAT THERE ARE TECHNOLOGICAL MEASURES IN THE SOFTWARE THAT ARE DESIGNED TO PREVENT UNLICENSED OR ILLEGAL USE OF THE SOFTWARE. develop. "Developer" means a human being or any other automated device using the SOFTWARE in accordance with the terms and conditions of this EULA. "Source Code" shall mean computer software code or programs in human readable format. on the express condition that. but is not limited to. email or telephone. The C1ReportDesigner Application is an executable file used to design and prepare reports. you are not licensed to distribute the control you created with the SOFTWARE to users for development purposes. 4. (c) you agree to indemnify. including attorney's fees that may arise from the use or distribution of your Developed Software. the C1ReportDesigner Application may be distributed. solely in object code format and exclusively in conjunction with and/or as a part of the Developed Software. or trademarks to market your Developed Software without the express written consent of C1. All Rights Reserved. disclose or otherwise make available to any third party the licensed Source Code. etc. exposes the programmatic interface of the SOFTWARE. wrap or subclass the SOFTWARE as Developed Software which. upon reasonable notice. You may distribute such derivative works. or ".c1reportdesigner. LLC 1991-2005. directly or indirectly. free of royalties. VSView Reporting Edition (ActiveX). logo. Your Distribution License. modifications or enhancements thereof. Users of the Developed Software may not use the SOFTWARE or the Redistributable Files. In all cases. then the following additional limitations will apply: a. Specific Product Limitations.NET Designer Edition. VSView Reporting Edition includes at least one executable file listed as “VSRptX. (b) you must include the following C1 copyright notice in your Developed Software documentation and/or in the "About Box" of your Developed Software. and all C1 updates. 3. if the license you have purchased is for any of the following products.”). SOURCE CODE IS LICENSED TO YOU AS IS.8. known as “Designer. on a royalty-free basis.END-USER LICENSE AGREEMENT FOR COMPONENTONE SOFTWARE · 5 THAT THE SOFTWARE WILL CEASE TO FUNCTION UNLESS AND UNTIL YOU VERIFY THE APPLICABLE SOFTWARE SERIAL KEY. 2) one executable file (ReportDesigner. The C1ReportDesigner Component is subject to the general terms and restrictions set forth in this EULA.7.exe” (where X indicates the version number i. Nothing herein shall be deemed to transfer any ownership or title rights in and to the licensed Source Code from C1 to you. and wherever the copyright/rights notice is located in the Developed Software (“Portions Copyright © ComponentOne.). and defend C1. 3) the Source Code of the C1ReportDesigner Application. In particular. you shall reimburse C1 for all reasonable expenses related to such audit in addition to any other liabilities you may incur as a result of such non-compliance. ComponentOne Reports for . title and interest in and to the licensed Source Code. C1 shall retain all right. (a) you may not use C1's name. hold harmless. You are expressly not granted the right to distribute. You may not add or transfer the SOFTWARE license key to the computer where the Developed Software is installed. for development purposes. only in conjunction with the Developed Software. you are granted the license to use and to distribute Developed Software on a royalty-free basis.). in source code format. provided that the Developed Software incorporates the SOFTWARE as an integral part of the Developed Software in machine-language compiled format (customarily an ". C1 hereby also grants you the right to use and to modify the C1ReportDesigner Application Source Code to create derivative works that are based on the licensed Source Code. You may distribute. (d) you may use the SOFTWARE only to create Developed Software that is significantly different than the SOFTWARE. License to Distribute Developed Software. In the event that such audit reveals any use of the SOFTWARE other than in full compliance with the terms of this EULA.win.exe) known as C1ReportDesigner Application and.dll". when used in a "designtime" development environment. ComponentOne Reports for . Notwithstanding anything in this EULA to the contrary.” The . You may not distribute. C1 DOES NOT AND SHALL NOT PROVIDE YOU WITH ANY TECHNICAL SUPPORT FOR YOUR SOURCE CODE LICENSE. its suppliers and resellers.e. from and against any claims or lawsuits. bundle. any portion.NET Designer Edition includes at least: 1) one dynamic link library file (c1. modified version or derivative work thereof.dll) known as C1ReportDesigner Component. b. Redistributable Files with Developed Software only. etc.exe". You agree that C1 may audit your use of the SOFTWARE for compliance with these terms at any time. if you create a control (or user control) using the SOFTWARE as a constituent control. Subject to the terms and conditions in this EULA. Upon expiration. Updates and upgrades to the SOFTWARE may be provided by C1 from time-to-time. 2. or you may ii) obtain a paid license of the SOFTWARE from C1 or any of its resellers. and c) any Developed Software developed with the Evaluation Copy may not be distributed or used for any commercial purpose. Subject to the terms and conditions of this EULA. Backups. you must renew your license subscription to continue to be entitled to receive SOFTWARE and/or the Studio Products revisions as the case may be. and “applets” incorporated into the SOFTWARE). upgrades. Serial Number. and interest in and to the SOFTWARE (including. To receive any such revisions to the SOFTWARE or the Studio Products. except and only to the extent that applicable law expressly permits such activity notwithstanding this limitation. The SOFTWARE is protected by copyright laws and international treaty provisions. except to the limited extent that C1 may be the rightful license holder of certain third-party technologies incorporated into the SOFTWARE. that you transfer all the SOFTWARE (including all component parts. Studio Subscription. b) upon completion of the Evaluation Period. some times changes to the mix of products included in the bundle). upgrades and. music. if applicable. 1. You agree that all right. then the SOFTWARE is one of the Studio Products. at any time or never. the effect of which shall be the immediate termination and revocation of all the rights granted herein. you will be issued a unique serial number (the "Serial Number") used for the activation of the SOFTWARE. are provided upon the terms and conditions offered at that time by C1 in its sole discretion. C1 may provide updates and upgrades to the SOFTWARE for free or for any charge. as the case may be. and. You may not reverse engineer. not sold to you. Copyright. 7.NET file "VSRptX. Notwithstanding the foregoing. c. The exact separately-licensed products that are bundled into the Studio Products may change from time-to-time in C1's sole discretion. and any copies of the SOFTWARE. if so provided by C1. Studio Products. The disclosure or distribution of the Serial Number constitutes a breach of this EULA. decompile. and that the transferee agrees to be bound by the terms of this . you must have a valid SOFTWARE license or a valid Studio subscription. animations. With your license. you shall either i) delete the SOFTWARE from the computer containing the installation. and any copyrights and other intellectual properties therein or related thereto are owned exclusively by C1.6 · Welcome to ComponentOne XLS for . Together with the Licenses. Updates/Upgrades. video. the Certificate of Authenticity). or any upgrade or future versions of the Designer. C1 reserves all rights not otherwise expressly and specifically granted to you in this EULA. The SOFTWARE is licensed to you. are subject to the restrictions set forth in this EULA and may not be distributed with your Developed Software or in any other way. revised with updates. If you are using an "evaluation copy". or disassemble the SOFTWARE. The Serial Number is subject to the restrictions set forth in this EULA and may not be disclosed or distributed either with your Developed Software or in any other way. You may not share the component parts of the Studio Products licensed to you with other Developers. and through its chosen manner of access and distribution. photographs. title. III. any updates. in the case of Studio products. the original purchaser is granted a one-year subscription from the date of purchase. You may not rent or lease the SOFTWARE. called the C1 "Studio" product line (the "Studio Products"). The SOFTWARE and the Studio Products are revised from time-to-time (meaning. then the Licenses are limited as follows: a) you are granted a license to use the SOFTWARE for a period of thirty (30) days counted from the day of installation (the "Evaluation Period"). for example. all in C1's sole discretion. You may permanently transfer all of your rights under the EULA. any images. C1 licenses certain of its separately-licensed products bundled together in a product suite. the Licenses are perpetual. provided that you retain no copies. General Limitations. nor may you allow the use and/or installation of such components by other Developers. but not limited to. You may make a copy of the SOFTWARE solely for backup or archival purposes.exe”. 3. this EULA and. Software Transfers. specifically designated as such by C1 on its website or elsewhere. 5. 4. text. Evaluation Copy. audio. If the SOFTWARE is identified as a C1 "Studio" product. INTELLECTUAL PROPERTY. 6. you may not copy the printed Documentation. the media and printed materials. In such an event. and any amendments thereof. to any countries. IV. WARRANTIES AND REMEDIES. Restricted End-Users. and (iii) the Software does not and will not infringe any trade secret. Exporter Counseling Division. and any license agreement used in connection with the distribution of the SOFTWARE.gov. trademark or other proprietary right held by any third party and does not infringe any patent held by any third party.END-USER LICENSE AGREEMENT FOR COMPONENTONE SOFTWARE · 7 EULA. For solicitations issued by the Government on or after December 1. Under no circumstances shall C1 be obligated to comply with any Governmental requirements regarding the submission of or the request for exemption from submission of cost or pricing data or cost accounting requirements. Washington DC. C1 also warrants that: (i) it has the full power to enter into this Agreement and grant the license rights set forth herein.A. THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Limited Warranty. EXCEPT AS OTHERWISE PROVIDED IN THE PRECEDING SENTENCE. Termination. which include. 7. For any distribution of the SOFTWARE that would require compliance by C1 with the Government's requirements relating to cost or pricing data or cost accounting requirements. These restrictions change from time to time. C1 EXPRESSLY DISCLAIMS ANY WARRANTY FOR THE SOFTWARE. and Restricted End-Uses. You acknowledge that the license and distribution of the SOFTWARE is subject to the export control laws and regulations of the United States of America.S. If the SOFTWARE is an update or upgrade. 3rd Floor. LLC. Manufacturer is ComponentOne. origin. and direct products of technical data. 5. C1 acknowledges that it shall use reasonable efforts to supply you with all reasonably necessary information regarding the SOFTWARE and its business to enable you to fully comply with the provisions of this Section. you should contact the Bureau of Export Administration. documentation and/or printed materials related thereto. any transfer must include all prior versions of the SOFTWARE.S. You agree that you will not export or re-export the SOFTWARE or any Developed Software. THE ENTIRE RISK ARISING OUT OF USE OR . copyright.S. Without prejudice to any other rights it may have. Export Restrictions. or other appropriate governmental agencies. Government Restricted Rights. You acknowledge that the SOFTWARE is of U.S. you must destroy all copies of the SOFTWARE and all of its component parts. the only rights provided in the software and documentation provided herein shall be those contained in this EULA. are free from defects for ninety (90) days from the date of delivery of the SOFTWARE. (202) 482-4811. C1 may terminate this EULA and the Licenses if you fail to comply with the terms and conditions contained herein. http://www. if any. Pittsburgh. the placement of any restrictive legends on the SOFTWARE. If you have any questions regarding your obligations under United States of America export regulations. EITHER EXPRESS OR IMPLIED. INCLUDING. United States Department of Commerce.doc. U. WITHOUT LIMITATION. including without limitation. The SOFTWARE and documentation are provided with RESTRICTED RIGHTS. U. 1.bxa. AND TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW. but are not limited to: Restricted Countries. You represent and warrant that neither the BXA nor any other United States federal agency has suspended. or any information. and any amendments thereof. (ii) it has not granted and will not grant any rights in the Software to any third party which grant is inconsistent with the rights granted to you in this Agreement. or for any end-uses that are restricted by U. 1995 and the Department of Defense on or after September 29. 6. 201 South Highland Avenue . C1 warrants that the original media. DOCUMENTATION AND ANYTHING ELSE PROVIDED BY C1 HEREBY AND C1 PROVIDES THE SAME IN “AS IS” CONDITION WITHOUT WARRANTY OF ANY KIND. export laws and regulations. You will comply with any requirements of the Government to obtain such RESTRICTED RIGHTS protection. which restrict exports and re-exports of software. revoked or denied your export privileges. directly or indirectly. 1995. Pennsylvania 15206 USA. including services and Developed Software. without first obtaining permission to do so as required from the United States of America Department of Commerce's Bureau of Export Administration ("BXA"). technical data. you must obtain an appropriate waiver or exemption from such requirements for the benefit of C1 from the appropriate Government authority before the distribution and/or license of the SOFTWARE to the Government. end-users. either (a) return of the price paid for the SOFTWARE. without regard to its conflict of laws principles. in the County of Allegheny. BUSINESS INTERRUPTION. THESE REMEDIES ARE NOT AVAILABLE OUTSIDE OF THE UNITED STATES OF AMERICA. 2. TRIAL VERSION AND THE NOT FOR RESALE VERSION OF THE SOFTWARE. including attorney's fees.2 for return of the SOFTWARE for nonacceptance of this EULA. and defend C1 and its suppliers and resellers from and against any and all claims or lawsuits. WHETHER EXPRESS OR IMPLIED. This is the Entire Agreement. and agree that any legal proceedings arising out of this EULA shall be conducted solely in such Commonwealth. 1. This EULA supersedes any prior and contemporaneous proposals. Any media for any repaired or replacement SOFTWARE will be warranted for the remainder of the original warranty period or thirty (30) days.NET PERFORMANCE OF THE SOFTWARE AND DOCUMENTATION REMAINS WITH YOU. or any portion thereof. REDISTRIBUTABLE FILES. advertisements. or (c) replace the SOFTWARE with SOFTWARE that substantially performs as described in the SOFTWARE documentation. Interpretation of this EULA. Failure by either party to enforce any provision of this EULA will not be deemed a waiver of future enforcement of that or any other provision. LOSS OF BUSINESS INFORMATION. TRIAL VERSION AND THE NOT FOR RESALE VERSION OF THE SOFTWARE ARE PROVIDED “AS IS”. shall be binding upon the parties unless entered into in writing executed between the parties. and no other understanding or agreement which in any way modifies these terms and conditions. Except as otherwise required or superseded by law. then local law may apply. Formatives of defined terms shall have the same meaning of the defined term. which arise out of or result from your distribution of your Developed Software. You agree to indemnify. 3.8 · Welcome to ComponentOne XLS for . No terms or conditions. ANY SAMPLE APPLICATION CODE. etc. EVEN IF C1 HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. V. whether oral or written. this EULA is governed by the laws of the Commonwealth of Pennsylvania. The parties consent to the personal jurisdiction and venue of the Commonwealth of Pennsylvania. FOR ANY SAMPLE APPLICATION CODE. Employees. other than those contained herein. provided that you return the SOFTWARE in the same manner as provided in Section I. THIS LIMITED WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS. complete and exclusive statement of the entire agreement between you and C1 relating to the SOFTWARE. THE ABOVE LIMITATION MAY NOT APPLY TO YOU. BECAUSE SOME STATES/JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES IN CERTAIN CASES. IN NO EVENT SHALL C1 BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING. hold harmless.). purchase orders. If the SOFTWARE was acquired outside the United States. your Developed Web Server Software or from your breach of any of the terms and conditions of this EULA. or by other non-oral manner of agreement whereby the parties objectively and definitively act in a manner to be bound (such as by continuing with an installation of the SOFTWARE. WITHOUT LIMITATION. C1 PROVIDES NO REMEDIES OR WARRANTIES. Limited Remedy. OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE. agents and other representatives of C1 are not permitted to orally modify this EULA. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW. This EULA (including any addendum to this EULA included with the SOFTWARE) is the final. You Indemnify C1. MISCELLANEOUS. that provision of this EULA will be enforced to the maximum extent permissible so as to effect the intent of the parties. and all other communications in relation to the subject matter of this EULA. and the remainder of this EULA will continue in full force and effect. YOU MAY HAVE OTHERS WHICH VARY FROM STATE TO STATE. C1's entire liability and your exclusive remedy under this EULA shall be. . If for any reason a court of competent jurisdiction finds any provision of this EULA. whichever is longer. (b) repair the SOFTWARE through updates distributed online or otherwise in C1's discretion. at C1's sole option. 2. to be unenforceable. DAMAGES FOR LOSS OF BUSINESS PROFIT. use licensing to allow potential users to test products before they decide to purchase them.NET and ASP. the user is prompted for the serial number that is saved on the system. he receives an installation program and a Serial Number.licx" file that contains references to those resources. What is Licensing? Licensing is a mechanism used to protect intellectual property by ensuring that users are authorized to use software products. It may help the user to understand and resolve licensing problems he may experience when using ComponentOne . or to display some information reminding the user that the software has not been licensed. (Users can also enter the serial number by clicking the "License" button on the About Box of any ComponentOne product. or select "Project | Show All Files" from Visual Studio's main menu. How does Licensing Work? ComponentOne uses a licensing model based on the standard set by Microsoft. . which Visual Studio saves in two files: 1. the licensing information is stored in the licenses. this type of distribution would not be practical for the vendor or convenient for the user. it appears if you press the "Show All Files" button in the Solution Explorer's toolbox. it gets passed the key that was created at design time and can decide whether to simply accept the key. These files are automatically added to the project.) When a licensed component is added to a form or web page. Note that the licenses. 2. which works with all types of components. None will throw licensing exceptions and prevent applications from running.Licensing FAQs · 9 Licensing FAQs This section describes the main technical aspects of licensing. or shift the burden of managing software licenses to customers. The component looks for licensing information stored in the system and generates a key. Later. Without licensing. to throw an exception and fail altogether.licx file. and the component works.NET) projects. Many software vendors. a "<projectName>. when the component is created at run time.NET products.licx file is usually not shown in the Solution Explorer. During the installation process.licenses" resource file which contains the actual key and a "licenses. Vendors would either have to distribute evaluation software with limited functionality. Visual Studio asks the newly created component for licensing information. who could easily forget that the software being used is an evaluation version and has not been purchased. NOTE: The Compact Framework components use a slightly different mechanism for licensing than the other ComponentOne components due to platform differences. including ComponentOne. When a user decides to purchase a product. All ComponentOne products are designed to display licensing information if the product is not licensed. Common Scenarios Creating components at design time This is the most common scenario and also the simplest: the user adds one or more controls to the form. Licensing is not only used to prevent illegal distribution of software products. Note that the mechanism is exactly the same for Windows Forms and Web Forms (ASP. Win. } • Add an instance of the base component to the form. therefore the licensing information is not included in VC++ applications. the project will not contain a licenses. This should create an exe file and also a licenses. Copy the licenses. As before. To fix this problem. No additional work is needed. To do this. In these cases. and the base class will handle the licensing process as usual. Inheriting from licensed components If a component that inherits from a licensed component is created.licx file and things will then work as expected. In the property window.C1FlexGrid { // . 2.. (The component can be removed from the form after the licenses. create a temporary Windows Forms application and add all the desired licensed components to a form. extra steps must be taken to compile the licensing resources and link them to the project.licx file is configured as an embedded resource. Note the following: 1. and the base component will find it and use it. Then close the Windows Forms application and copy the licenses. 3.licx file has been created). Make sure the licensex.. The licenses.licx file. This can be done in two ways: • Add a LicenseProvider attribute to the component.licx file into the console application project.licx file in the Solution Explorer window and select Properties.licx file has been created. it has bugs.) . the extra instance can be deleted after the licenses. This will mark the component as licensed. Using licensed components in Visual C++ applications It seems there is a bug in VC++ 2003. add an instance of the component to a form in the project. You do not need an instance of the component on the form. For example: [LicenseProvider(typeof(LicenseProvider))] class MyGrid: C1.licx file from the app directory to the target folder (Debug or Release). In this case. set the "Build Action" property to "Embedded Resource". right-click the licenses. there are no forms to add components to.NET Creating components at run time This is also a fairly common scenario. This will embed the licensing information into the licenses.licx file (or the file will not contain an appropriate key for the component) and therefore licensing will fail. Using licensed components in console applications When building console applications.C1FlexGrid.exe utility and the licensed dlls to the target folder.licx file as in the previous scenario. When a component is added to a form. This will create the licenses. but would like to create one or more instances at run time.licx is ignored during the build process.licx file.licx file with licensing information in it. and therefore Visual Studio won't create a licenses. (Don't use the standard lc. Visual Studio will create and manage the licenses. To fix this problem. Build the C++ project as usual.10 · Welcome to ComponentOne XLS for .exe. Copy the C1Lc. the licensing information to be stored in the form is still needed. therefore the licensing information will be saved into the executable (exe or dll) when the project is built.licx file in the project. I downloaded a new build of a component that I have purchased.Win. follow these steps: 1. The new subscription will entitle you to a full year of upgrades and to download the latest maintenance builds directly from http://prerelease.componentone. 5. I have a licensed version of a ComponentOne product but I still get the splash screen when I run my project. It either doesn't exist.licx /i:C1. Open the main form and add an instance of each licensed control. there must be a problem with the licenses. you have two options: Option 1 . there should be a licenses. and go to the Linker/Command Line option. If that fails.Renew your subscription to get a new license key. There is no need to install any licenses on machines used as servers and not used for development.Licensing FAQs · 11 4. 6. you will receive a new key that you can use to license the new components (from the installation utility or directly from the About Box). 7. Below is a description of the most common problems and their solutions. and now I'm getting the splash screen when I build my projects. Troubleshooting We try very hard to make the licensing mechanism as unobtrusive as possible.dll Link the licenses into the project.exe to compile the licenses. but problems may occur for a number of reasons. try a full rebuild ("Rebuild All" from the Visual Studio Build menu). 5.licx file. or is not configured correctly. your subscription may have expired. 2. Click the "Show All Files" button on the top of the window. If you choose this option. If you licensed the component over a year ago.com/. Open the project and go to the Solution Explorer window. Rebuild the project using the "Rebuild All" option (not just "Rebuild"). Use C1Lc. This will usually rebuild the correct licensing resources. go back to Visual Studio. Find the licenses. In this case. Enter the following: /ASSEMBLYRESOURCE:Debug\MyApp. I have a licensed version of a ComponentOne product on my web server but the components still behave as unlicensed.exe. The command line should look like this: c1lc /target:MyApp. Make sure that the license key is still valid. 4. select properties.licx file and delete it. First. . right-click the project. Close the project and reopen it.licenses Rebuild the executable to include the licensing information in the application. including web servers. If this happens. The components must be licensed on the development machine. After that. 6. To do this. the application can be deployed on any machine. Check the Solution Explorer window. 3.C1FlexGrid.licx file there.exe /complist:licenses. contains wrong information. e-mail us at: support.dll (if using Visual Studio 2005) Site licenses are available for groups of multiple developers. products do not.componentone.NET is developed and published by ComponentOne LLC. . view online demos.C1Excel. Redistributable Files ComponentOne XLS for . • Your development environment and its version. please include the following information when contacting ComponentOne: • Your ComponentOne product serial number.com for details.NET is developed and supported by ComponentOne LLC. organized by functionality.NET Option 2 – Continue to use the components you have.com/support. Subscriptions expire. For more information on technical support. ComponentOne HelpCentral ComponentOne HelpCentral is the new online resource for Visual Studio developers and Help authors. go to www.c1excel.2. free of royalties.com provides a wealth of information and software downloads for XLS for . • The version and name of your operating system. You may use it to develop applications in conjunction with Microsoft Visual Studio or any other programming environment that enables the user to use and integrate the control(s).dll • C1. • Free product updates. the following Redistributable Files with any such application you develop to the extent that they are used separately on a single CPU on the client/workstation side of the network: • C1. Please contact
[email protected] users. including: • Descriptions of the various support options available through the ComponentOne Service Team. get Tech Tips and answers to frequently asked questions (FAQ's).net@componentone. a company formed by the merger of APEX Software Corporation and VideoSoft. as this can save you time and also introduce you to other useful information pertaining to our products. • Answers to frequently asked questions (FAQ's) about our products. Please consult the FAQ's before contacting us directly. You can continue to use the components you received or downloaded while your subscription was valid. which provide you with bug fixes and new features. You can obtain technical support using any of the following methods: ComponentOne Web Site The ComponentOne Web site at www. search the ComponentOne knowledgebase and more! Internet e-mail For technical support through the Internet.12 · Welcome to ComponentOne XLS for . Technical Support XLS for .C1Excel. You may also distribute.com To help us provide you with the best support. Visit HelpCentral to get information on ComponentOne products.componentone. XLSheet C# // Define a new XLSheet object (custom XLSheet class) XLSheet MyXLSheet.0 (. The following code snippet demonstrates how to declare these objects: • Visual Basic ' Define a new XLSheet object (custom XLSheet class) Dim MyXLSheet as XLSheet ' Define a new C1Excel. // Define a new C1Excel. Assemblies can contain multiple namespaces. Delphi var xlbook1: C1. if you create a new class named XLSheet. if you want to use the C1Excel class in the same project.XLSheet XLSheet.C1XLBook. If you have suggestions on how we can improve our documentation. Visual Studio . Microsoft Help 2.NET produces an error stating that the name is ambiguous. Documentation ComponentOne documentation is available with each of our products in HTML Help.componentone. If the reference is not unique.C1Excel. ComponentOne may monitor the newsgroups to ensure accuracy of information and provide comments when necessary. you can use it inside your project without qualification. The namespace for the C1Excel component is C1.C1Excel. • .C1Excel. ComponentOne does not offer formal technical support in this newsgroup.C1Excel.C1Excel. Technical Support and Sales issues should be sent directly to their respective departments.C1Excel. ASP. but instead sponsors it as a forum for users to post and answer each other's questions regarding our products.XLSheet object. All of the PDFs are also available on HelpCentral. and PDF format. please email the Documentation team. These conflicts with existing components are sometimes called name collisions. You can access the newsgroup from the ComponentOne Web site at http://helpcentral. So.Namespaces · 13 Peer-to-Peer newsgroup ComponentOne also sponsors peer-to-peer newsgroups for users. C1. the C1Excel assembly also implements a class called XLSheet. The following code fragment shows how to declare a C1Excel component using the fully qualified name for this class: • • • Visual Basic Dim xlbook1 As C1. Namespaces Namespaces organize the objects defined in an assembly.C1XLBook C# C1. However. However. Please note that e-mail sent to the Documentation team is for documentation feedback only. in which the developer of a class library is hampered by the use of similar names in another library. Namespaces address a problem sometimes known as namespace pollution.com/Newsgroups. which can in turn contain other namespaces. Namespaces prevent ambiguity and simplify references when using large groups of objects such as class libraries.NET.C1XLBook xlbook1.XLSheet object. Dim XLSheet as C1. For example.aspx. you must use a fully qualified reference to make the reference unique.NET and Mobile Device products only). If you use the Imports statement without an alias. MyXLSheet.NET • Delphi var MyXLSheet: C1. end.XLSheet. you must reference the C1Excel assembly in your project. To get around this. Fully qualified names prevent naming conflicts because the compiler can always determine which object is being used.XLSheet. Select the Add Reference option from the Project menu of your project. • Delphi uses C1XLSheet. Therefore. end.C1Excel. and uses these aliases to define two objects: • Visual Basic Imports C1XLSheet = C1.dll if using Visual Studio 2005) file. 2.C1Excel. or browse to find the C1. you can use all the names in that namespace without qualification. Adding a Reference to the C1Excel Assembly When you install XLS for . begin MyXLSheet := XLSheet.14 · Welcome to ComponentOne XLS for .NET.XLSheet.C1Excel. provided they are unique to the project. . using MyXLSheet = MyProject.Create. Fully qualified names are object references that are prefixed with the name of the namespace where the object is defined. MyXLSheet := MyProject.XLSheet Imports MyXLSheet = MyProject.C1Excel. you can use the Imports statement (using in C#) to define an alias — an abbreviated name you can use in place of a fully qualified name. To use the C1Excel component: 1. C1XLSheet s1. MyXLSheet := C1. Select the C1.C1Excel.Create.C1Excel.2. MyXLSheet: XLSheet. the following code snippet creates aliases for two fully qualified names.XLSheet. However. to use C1XLS.dll (or C1.XLSheet. s1: C1XLSheet. MyXLSheet s2.XLSheet.C1Excel assembly from the list. You can use objects defined in other projects if you create a reference to the class (by choosing Add Reference from the Project menu) and then use the fully qualified name for the object in your code. For example. a new component does not appear in the Visual Studio’s toolbox.XLSheet Dim s1 As C1XLSheet Dim s2 As MyXLSheet • C# using C1XLSheet = C1. var s2: MyXLSheet.C1Excel. begin C1XLSheet := C1. the names themselves can get long and cumbersome. Select Yes. must be updated in order for the project to run correctly. add the following Imports statements (using in C#. The Visual Studio Conversion Wizard appears.IO Imports C1. 4.licx file. At the top of the file. Double-click the form caption area to open the code window. the . you must convert your project to Visual Studio 2005. First.IO assemblies visible to the project and saves a lot of typing. Select it and click Open. there are two main steps that must be performed. create a backup before converting to create a backup of your current project and click Next. uses in Delphi): Imports System. which includes removing any references to a previous assembly and adding a reference to the new assembly.sln file for the project that you wish to convert to Visual Studio 2005. or licensing file. To convert the project: 1.C1Excel NOTE: This makes the objects defined in the C1Excel and System. Click Next. . Open Project. 2. 3. Secondly. Locate the .Migrating a C1XLS Project to Visual Studio 2005 · 15 3. Open Visual Studio 2005 and select File. Migrating a C1XLS Project to Visual Studio 2005 To migrate a project using ComponentOne components to Visual Studio 2005. Now you must remove references to any of the previous ComponentOne . select the project. 6. Note: The Show All Files button does not appear in the Solution Explorer toolbar if the Solution project node is selected. 7.dlls and add references to the new ones. Click Show the conversion log when the wizard is closed if you want to view the conversion log.16 · Welcome to ComponentOne XLS for .NET 5. 8. . Click Finish to convert your project to Visual Studio 2005. Click Close. The project opens. The Conversion Complete window appears. Go to the Solution Explorer (View | Solution Explorer). and click the Show All Files button. In the Solution Explorer.C1Excel. Browse and select C1.Common and select Remove. right-click the licenses. right-click C1.licx file: 1.dll.c1excel the same way.licx file and select Delete. Click OK to add it to the project.Migrating a C1XLS Project to Visual Studio 2005 · 17 9. . Also remove c1. Right-click the References node and select Add Reference.2. 11. Expand the References node. 10. To update the . licx. Close to close the form and then double-click the Form. . The new . updated version of the .licx file may not be visible in the Solution Explorer. The migration process is complete.licx file. Click OK to permanently delete licenses. Click the Start Debugging button to compile and run the project. 3. 4.licx file appears in the list of files.18 · Welcome to ComponentOne XLS for .vb or Form. The new licenses. Select File. The project must be rebuilt to create a new.cs file in the Solution Explorer to reopen it.NET 2. You can load a workbook with a single command. Images: C1XLS does not read or write images of any kind. and cells). The main feature in C1XLS is ease of use. Formulas: C1XLS will read the last result of any calculations in the book. . columns. but not the hyperlinks themselves. Hyperlinks: C1XLS will read the content and style of cells that contain hyperlinks. manipulate sheets as if they were grid controls (composed of rows. but it will not read or save cell formulas.0 (also known as Excel 97). The main limitations in the current version are (some of these features will probably be added in future versions): • • • • Cell Borders: C1XLS does not currently expose cell borders. then save the workbook to an XLS file. For example. so they can be viewed and edited by anyone with a copy of Microsoft Excel. including all cell content and formatting. C1XLS reads and writes Microsoft Excel files using the BIFF8 format used since Excel 8. including charts. the C1Report component uses C1Excel to export reports to the XLS format. it does not recognize all elements saved by Microsoft Excel. C1XLS can load files with multiple worksheets. The main use for C1XLS is to create XLS files that can be opened with Microsoft Excel.Overview · 19 Overview C1Excel is a library that allows you to read and write Microsoft Excel files from your applications. However. . 3. Each book is composed of one or more sheets (XLSheet objects).Save("c:\temp\hello. For example.Create. Save the book to a file using the Save method.Sheets[0]. Create a C1XLBook object.Value = i + 1. // step 2: write content into some cells XLSheet sheet = book. i++) sheet[i. • Delphi var book: C1XLBook.Sheets[0]. begin // step 1: create a new workbook book := C1XLBook. end. for (int i = 0. Add content to the sheets. // step 3: save the file book. i < 100. i: Integer. 2. 0).Value := i + 1. for i = 0 to 99 do sheet[i. 0]. // step 3: save the file book.Creating Documents · 21 Using C1XLS Creating Documents To create a new XLS file using C1XLS.Save('c:\temp\hello.Save(@"c:\temp\hello.xls") • C# // step 1: create a new workbook C1XLBook book = new C1XLBook(). // step 2: write content into some cells sheet := book. sheet: XLSheet.Sheets(0) Dim i As Integer For i = 0 To 99 sheet(i.Value = i + 1 Next i ' step 3: save the file book. Each sheet contains cells (XLCell objects) that have a Value and a Style property. 0].xls'). the following code creates a new Excel file with a single sheet containing numbers from 1 to 100: • Visual Basic ' step 1: create a new workbook Dim book As New C1XLBook() ' step 2: write content into some cells Dim sheet As XLSheet = book. three steps are required: 1. .xls"). styleEven. // step 3: write content and styles into some cells XLSheet sheet = book.Count and Columns.Font = new Font("Tahoma". Just create one or more XLStyle objects and assign them to cells much like you did values.Font = New Font("Tahoma". use the sheet's Rows. i < 100. Note that the indexer in the XLSheet object automatically creates cells.Value = i + 1 If i + 1 Mod 2 = 0 Then cell.Style = styleOdd EndIf Next i ' step 4: save the file book.Italic). This makes it easy to fill worksheets that you create. 0].Font = new Font("Tahoma". if necessary. FontStyle. 9.Font = New Font("Tahoma".Sheets(0) Dim i As Integer For i = 0 To 99 Dim cell As XLCell = sheet(i. The code starts by retrieving an XLSheet object that represents the single worksheet in the new Excel workbook. FontStyle. FontStyle. 0) cell. i++) { XLCell cell = sheet[i. This revised version of the code above creates a sheet where even numbers are shown in bold red characters and odd numbers in italic blue: • Visual Basic ' step 1: create a new workbook Dim book As New C1XLBook() ' step 2: create styles for odd and even values Dim styleOdd As New XLStyle(book) styleOdd.ForeColor = Color. If you want to find out the sheet dimensions.xls") • C# // step 1: create a new workbook C1XLBook book = new C1XLBook().Style = styleEven Else cell. styleEven. 9.Save("c:\temp\hello. // step 2: create styles for odd and even values XLStyle styleOdd = new XLStyle(book).Italic) styleOdd. XLStyle styleEven = new XLStyle(book). .22 · Using C1XLS Step 2 is the most interesting one.Red ' step 3: write content and styles into some cells Dim sheet As XLSheet = book. You can also use styles to format the cells. 9. FontStyle.Bold). Of course.Blue Dim styleEven As New XLStyle(book) styleEven.ForeColor = Color. Then the code uses the sheet indexer to reference cells in the sheet and assign them values from 1 to 100.Count properties.Sheets[0]. for (int i = 0. styleOdd. you are not limited to assigning values to cells. 9.Red.Bold) styleEven.ForeColor = Color. This sheet is created automatically when you create a new C1XLBook.Blue.ForeColor = Color. styleOdd. which creates styles for odd and even cells.Drawing. along with the cell values.ForeColor := Color.Font := System.Style = ((i+1) % 2 == 0)? styleEven: styleOdd.Drawing.Create('Tahoma'. FontStyle.Bold). cell. end. FontStyle. styleOdd := XLStyle.Create('Tahoma'. cell: XLCell.Create(book).Italic).xls"). end.Style := styleOdd. if (i + 1) mod 2 = 0 then cell. for i := 0 to 99 do begin cell := sheet(i. styleOdd. styleEven: XLStyle. 9.Value := i + 1. .Value = i + 1.Font. i: Integer.Style := styleEven else cell. styleOdd: XLStyle. styleEven.Creating Documents · 23 cell.ForeColor := Color. begin // step 1: create a new workbook book := C1XLBook.Red. } // step 4: save the file book. The main difference is the new step 2.Save('c:\temp\hello. 0).Font. // step 3: write content and styles into some cells sheet := book. // step 4: save the file book. styleEven.Create(book). styleEven := XLStyle. cell. The new styles are assigned to cells in step 3.Create. 9.Sheets[0]. // step 2: create styles for odd and even values styleOdd.Save(@"c:\temp\hello.xls').Blue. The code is similar.Font := System. sheet: XLSheet. • Delphi var book: C1XLBook. Delphi var row: XLRow. Individual cells can be accessed using the XLSheet indexer. but it makes it very easy to create and populate XLSheet objects. The same applies to XLColumn and XLCell indexers. new rows will be automatically added.Sheets[0]. The Rows and Columns collections in the XLSheet object extend automatically when you use their indexers. Each sheet has a name and contains a collection of rows and columns.NET.Sheets(0) Dim row As XLRow = sheet. This is different from the behavior of most collection indexers in . sheet: XLSheet. begin sheet := book. For example. They are represented by XLSheet objects accessible through the Sheets property in the C1XLBook class.Rows(1000) C# XLSheet sheet = book. • Visual Basic Dim sheet As XLSheet = book.Rows[1000].Rows[1000]. which takes row and column indices. XLRow row = sheet. end. • • .Sheets[0].24 · Using C1XLS This is what the file created by the code above looks like when opened in Microsoft Excel: Worksheets Worksheets are the individual grids contained in an Excel file. if you write the following code and the sheet has fewer than 1001 rows. row := sheet. and a valid row will be returned. Rows and Columns · 25 Rows and Columns The XLSheet object contains collections of rows and columns that expose each individual row and column on the sheet. The exposed XLRow and XLColumn objects allow you to assign the size (column width, row height), visibility, and style for each row and column on the sheet. If you don't assign any of these values, the sheet's defaults will be used (see the DefaultRowHeight and DefaultColumnWidth properties). The default dimensions for XLRow and XLColumn objects are –1, which means 'use the sheet's default values'. Cells The XLSheet object also contains cells that can be accessed using an indexer that takes row and column indices. The cells are represented by XLCell objects that contain the cell value and style. As with rows and columns, the cell indexer also extends the sheet automatically. For example, write: • • • Visual Basic Dim cell As XLCell = sheet(10, 10) C# XLCell cell = sheet[10,10]; Delphi var cell: XlCell; begin cell := sheet[10,10]; end; If the sheet has fewer than 11 rows and 11 columns, rows and columns will be added and a valid XLCell object will be returned. Because the sheet expands automatically, this indexer will never return a null reference. If you want to check whether a particular cell exists on the sheet and you don't want to create the cell inadvertently, use the sheet's GetCell method instead of the indexer. XLCell objects have a Value property that contains the cell contents. This property is of type object and it may contain strings, numeric, Boolean, DateTime, or null objects. Other types of objects cannot be saved into Excel files. XLCell objects also have a Style property that defines the appearance of the cell. If the Style property is set to null, the cell is displayed using the default style. Otherwise, it should be set to an XLStyle object that defines the appearance of the cell (font, alignment, colors, format, etc). Styles The XLStyle class defines the appearance of a cell, row, or column on a sheet. XLStyle includes properties that specify style elements such as the font, alignment, colors, and format used to display cell values. Not all style elements need to be defined in every XLStyle object. For example, if an XLStyle specifies only a format, then the cell is displayed using the specified format and default settings for the other style elements (font, alignment, etc.). C# Samples · 27 C1XLS Samples Please be advised that this ComponentOne software title is accompanied by various sample projects and/or demos, which may or not make use of other ComponentOne development tools. While the sample projects and/or demos included with the software are used to demonstrate and highlight the product’s features, and how the control may be integrated with the rest of the ComponentOne product line, some of the controls used in the demo/sample project may not be included with the purchase of certain individual products. The ComponentOne Samples are also available at http://helpcentral.componentone.com/ProductResources.aspx. C# Samples AutoSize The sample loops through all cells measuring their contents, then sets the column widths based on the widest entry. This sample takes into account the cell contents, format and font. It does not account for content wrapping or merging. This sample calls the C1.C1Excel namespace. The sample allows you to create borders around arbitrary ranges. You can control border width, style, color, etc. When you are done creating the borders, click the last button on the toolbar to export the grid to Excel, including the custom borders. This sample uses the C1FlexGrid control and calls the C1.C1Excel namespace. Demonstrates how to load and save XLS file. This sample uses the C1FlexGrid control and calls the C1.C1Excel namespace. Demonstrates how to create an XLS file and add sheets. This sample calls the C1.C1Excel namespace. CellBorder FlexGrid HelloWorld C1Excel Frequently Asked Questions Here are some frequently asked questions about C1Excel: Does C1Excel support creating or adding formulas or named ranges? There is no support for creating or adding formulas or named ranges at this time. This feature will be added in the future. Currently, C1Excel will read and write Excel formulas and named ranges, which allows you to load existing XLS files, modify some cells, and save the file back to disk preserving the formulas and named ranges. . } Delphi var sheet: XLSheet := book1. 1. 3.Start("C:\mybook.Sheets(0).Process. for (int i = 0.Value = i + 1. i++) { sheet(i. Create a new book: • • • Visual Basic Dim book1 As New C1XLBook() C# C1XLBook book1 = new C1XLBook().Sheets(0) Dim i As Integer For i = 0 To 9 sheet(i. System.Value = i + 1 Next i • C# XLSheet sheet = book1.0).xls"). i: integer. for i := 0 To 9 do begin sheet(i.Process.xls") System.0).Process.Save("c:\mybook. Save and open the book: • Visual Basic book1. System. 2.xls"). Add values to the first ten cells: • • • • . Visual Basic Dim sheet As XLSheet = book1.Save(@"c:\mybook.Sheets(0).Diagnostics. Delphi var book1: C1XLBook.Value := i + 1. int i.xls") C# book1.xls").Diagnostics.Diagnostics.Adding Content to a Workbook · 29 C1Excel Task-Based Help Adding Content to a Workbook This topic demonstrates how to create a new workbook and add values to the first ten cells. end.0).Start("C:\mybook.Save("c:\mybook.Start(@"C:\mybook.xls"). Delphi book1. i <= 9. Value = i + 1.Value = i + 1 Next i • C# C1XLBook book1 = new C1XLBook().0). int i. i <= 9.Sheets(0) Dim i As Integer For i = 0 To 9 sheet(i. • . 1. i++) { sheet(i.0). sheet: XLSheet := book1.Sheets(0).30 · C1Excel Task-Based Help Formatting Cells This topic demonstrates how to format the cells of a book. Create a new book with some content: • Visual Basic Dim book1 As New C1XLBook() Dim sheet As XLSheet = book1. } Delphi var book1: C1XLBook. for (int i = 0. Process. style1. System. System.Save(@"c:\mybook.Start("C:\mybook.BackColor := Color. end.0). begin style1.00". style1.Format := "$ .Start(@"C:\mybook.ForeColor = Color.Value := i + 1. style1.Blue.Process.xls") System.Formatting Cells · 31 i: integer.xls").Save("c:\mybook.xls").BackColor = Color.Diagnostics. Delphi book1.Format = "$ .Process.Gold.xls").ForeColor = Color. Create a new style and assign the style some properties: • Visual Basic Dim style1 As New XLStyle(book1) style1. Delphi var style1: XLStyle(book1).xls") C# book1. • • 3.Diagnostics.00" C# XLStyle style1 = new XLStyle(book1).Start("C:\mybook.Blue style1. • • .Blue.Gold.ForeColor := Color.00". style1. Save and open the book: • Visual Basic book1. end.Diagnostics.Format = "$ . style1.BackColor = Color.Save("c:\mybook. for i := 0 To 9 do begin sheet(i.xls").Gold style1. 2. Load("C:\text.xls").Load("C:\test. end.xls") C# C1XLBook wb = new C1XLBook(). 1.Sheets.Load("C:\test. Load an existing book: • Visual Basic Dim wb As New C1XLBook() wb. begin wb. Create a new XLSheet: • .xls").32 · C1Excel Task-Based Help Copying Rows from One Book to Another This topic demonstrates how to copy the rows of a sheet from one book to a second book. wb. Visual Basic Dim xb As New C1XLBook() xb. Delphi var wb: C1XLBook.Add("Test") • • 2. col As Integer For row = 0 To source. col). XLSheet dest = xb.Columns.Value Next Next C# XLSheet source = wb. • 3. row++) { for (int col = 0.xls").Diagnostics. Visual Basic Dim source As XLSheet = wb.xls").xls") System. row: integer.Save("c:\test2.Columns.Value = source(row.Sheets[0].xls"). begin xb. col: integer. col).Process. col). Visual Basic xb. dest: XLSheet := wb.Start(@"C:\test2.Start("C:\test2. for (int row = 0. Delphi var xb: C1XLBook. } } Delphi var source: XLSheet := wb.xls"). col). col++) { dest(row.Sheets.Diagnostics.Columns.Copying Rows from One Book to Another · 33 • C# C1XLBook xb = new C1XLBook().Value = source(row.Sheets("Test").1 For col = 0 To source.Count . col).1.Count . Save and open the new book: • • • .Value. Delphi xb. xb.Rows.Value := source(row.Rows.Count . row <= source.Start("C:\test2. System. col).Sheets. col <= source.Sheets[0].Count – 1 do dest(row. Copy each row from the sheet of the existing book to new XLSheet: • • • 4.Count . for row := 0 to source.xls") C# xb. end.1.Save(@"c:\test2.Process.Sheets(0) Dim dest As XLSheet = xb.Count . int row.1 dest(row. int col.Add("Test") end.Diagnostics.Sheets[0].Save("C:\test2.Add("Test").1 do begin for col := 0 to source.Sheets("Test") Dim row As Integer.Value.Process. System.Rows. . 2 Assembly Namespaces C1. Represents a range of XLCell objects in a XLSheet. and Hyperlink. Style. and provides properties for getting and setting the cell Value.C1Excel C1.C1Excel. Contains methods for loading and saving xls files. style.C1Excel.C1Excel Hierarchy Classes Class C1XLBook Description Represents an Excel workbook containing one or more worksheets. provides properties for setting the row's height. and visibility.2 Assembly · 35 C1. XLCell Represents individual cells in a XLSheet. Provides options and settings for printing XLSheet objects. Represents a collection of XLRow objects that represent the individual rows in each XLSheet.C1Excel Namespace C1. Represents a row in a worksheet. Represents a collection of XLColumn objects that represent the individual columns in each XLSheet. and visibility. Contains style elements used to define the appearance of the cells. Represents individual worksheets in an Excel workbook ( C1XLBook). Collection of XLSheet objects that represent the individual worksheets in a C1XLBook. Represents a column in a worksheet. provides properties for setting the column's width. and exposes a collection of XLSheet objects that represent the individual worksheets. Represents a collection of XLCellRange objects on an XLSheet.C1. style. XLCellRange XLCellRangeCollection XLColumn XLColumnCollection XLPrintSettings XLRow XLRowCollection XLSheet XLSheetCollection XLStyle . IEnumerable C1.XLCellRange C1.C1Excel.C1Excel.2 Assembly Description Specifies how to align cell content horizontally within a cell. Specifies the pattern used for To fill the cell background.System.XLDiagonalFlags C1.XLCellRangeCollection ---.C1Excel.Component C1.XLLineStyleEnum C1.C1Excel Namespace Enumerations Enumeration XLAlignHorzEnum XLAlignVertEnum XLDiagonalFlags XLLineStyleEnum XLPatternEnum See Also C1. C1.C1Excel.ComponentModel.Collections. System.System.Collections.XLRow C1.XLColumnCollection ---.XLPatternEnum .XLCell C1.XLAlignVertEnum C1.ICollection.Collections.C1Excel.C1Excel. Specifies how to align cell content vertically within a cell.C1Excel.C1Excel.36 · C1.Object System.C1Excel.IEnumerable C1.XLRowCollection ---.ICollection.IEnumerable C1.C1Excel Hierarchy System.XLStyle ---.XLAlignHorzEnum C1.ICollection.C1Excel.System.C1Excel.XLPrintSettings C1.Collections.System.ValueType System. Specifies the line style used for the cell borders.Collections.ICloneable System. System.C1Excel.C1Excel.C1Excel. Specifies the type of diagonal line to draw across the cells.C1Excel.IEnumerable C1.System.XLSheet C1.Collections. System.C1Excel.MarshalByRefObject System.XLColumn C1. System.Collections.C1Excel.XLSheetCollection ---.Collections.[Enum] C1.C1XLBook C1.C1Excel.ICollection. and exposes a collection of XLSheet objects that represent the individual worksheets.C1Excel.C1Excel Namespace C1XLBook Members C1XLBook overview Public Constructors C1XLBook Constructor Creates a new instance of the C1XLBook class. Gets or sets whether the component should store formulas read from Xls files and write them back when saving the file.C1Excel. see C1XLBook Members. The new workbook contains a single empty XLSheet called "Sheet1". For a list of all members of this type.C1Excel.Drawing. Public Properties DefaultFont KeepFormulas Sheets . System.C1Excel Assembly: C1.C1XLBook Class · 37 See Also C1.C1Excel Namespace C1XLBook Class Represents an Excel workbook containing one or more worksheets.MarshalByRefObject System.2 (in C1.Font for the C1XLBook. Gets a collection of XLSheet objects that represent the worksheets in the C1XLBook. Namespace: C1. Contains methods for loading and saving xls files.C1XLBook [Visual Basic] Public Class C1XLBook Inherits Component [C#] public class C1XLBook : Component [Delphi] type C1XLBook = class (Component).Object System. Gets or sets the default System.ComponentModel.2.Component C1.dll) See Also C1XLBook Members | C1. [Visual Basic] Public Function New() [C#] public C1XLBook() [Delphi] public constructor Create(). C1XLBook Constructor Creates a new instance of the C1XLBook class.C1Excel Namespace Public Methods Clear Load PixelsToTwips Save TwipsToPixels See Also C1XLBook Class | C1. For a complete list of C1XLBook class members. Saves the C1XLBook to an xls file. see the C1XLBook Members topic.38 · C1. Sheets See Also C1XLBook Class | C1.C1Excel Namespace C1XLBook Properties The properties of the C1XLBook class are listed here. Converts a pixel measurement into twips (1/20th of a point). restoring the initial state with a single XLSheet called "Sheet1". Overloaded. Gets a collection of XLSheet objects that represent the worksheets in the C1XLBook. Loads a complete C1XLBook from an xls file.Drawing. Converts a twip measurement into screen pixels. See Also C1XLBook Class | C1XLBook Members | C1. Public Properties DefaultFont KeepFormulas Gets or sets the default System.Font for the C1XLBook.C1Excel Namespace . The new workbook contains a single empty XLSheet called "Sheet1".C1Excel Namespace Clears the C1XLBook. Gets or sets whether the component should store formulas read from Xls files and write them back when saving the file. Cells that have no associated custom styles or have styles that do not define a custom font are displayed using the book's default font.} [Delphi] public property KeepFormulas: Boolean read get_KeepFormulas write set_KeepFormulas.C1Excel Namespace .KeepFormulas Property Gets or sets whether the component should store formulas read from Xls files and write them back when saving the file.C1XLBook. [Visual Basic] Public Property DefaultFont As Font [C#] public Font DefaultFont {get. The DefaultFont property is initially set to 10 pt Arial. This is the default setting. Saving the file in this case will retain the last calculated values but will remove the formulas.set.DefaultFont Property · 39 C1XLBook. and save the file preserving the formulas.Font for the C1XLBook. modify the values in some cells. Remarks You can assign any font to any cell using XLStyle objects.} [Delphi] public property DefaultFont: Font read get_DefaultFont write set_DefaultFont. The component does not provide any support for creating or editing formulas. Remarks Setting this property to true allows you to load existing XLS files. See Also C1XLBook Class | C1XLBook Members | C1. [Visual Basic] Public Property KeepFormulas As Boolean [C#] public bool KeepFormulas {get.Drawing.DefaultFont Property Gets or sets the default System. Formulas must be created in Excel.set. See Also C1XLBook Class | C1XLBook Members | C1. Assigning any value to a cell will clear the formula in the cell. Setting this property to false causes the component to remove the formulas in the book when it is loaded.C1Excel Namespace C1XLBook. Loads a complete C1XLBook from an xls file. Converts a pixel measurement into twips (1/20th of a point). [Visual Basic] Public Sub Clear() [C#] public void Clear() [Delphi] public procedure Clear(). [Visual Basic] Public ReadOnly Property Sheets As XLSheetCollection [C#] public XLSheetCollection Sheets {get.40 · C1. adding and removing sheets from the C1XLBook. Converts a twip measurement into screen pixels. see the C1XLBook Members topic.C1Excel Namespace C1XLBook Methods The methods of the C1XLBook class are listed here.Sheets Property Gets a collection of XLSheet objects that represent the worksheets in the C1XLBook. For a complete list of C1XLBook class members. . Overloaded.} [Delphi] public property Sheets: XLSheetCollection read get_Sheets.C1Excel Namespace C1XLBook. Saves the C1XLBook to an xls file. C1XLBook. Remarks The XLSheetCollection returned has methods for counting. restoring the initial state with a single XLSheet called "Sheet1". See Also C1XLBook Class | C1XLBook Members | C1. Public Methods Clear Load PixelsToTwips Save TwipsToPixels See Also C1XLBook Class | C1. restoring the initial state with a single XLSheet called "Sheet1".C1Excel Namespace Clears the C1XLBook.Clear Method Clears the C1XLBook. enumerating. Loads a list of the worksheets in an xls file.Load Method Overload List Loads a complete C1XLBook from an xls file.C1XLBook. or is not a valid Excel file.. [Visual Basic] Overloads Public Sub Load( _ ByVal fileName As String _ ) [C#] public void Load( string fileName ).Load Method (String) Loads a complete C1XLBook from an xls file. Boolean) [C#] public void Load(string. is locked. overload. with a single empty sheet called "Sheet1" and the DefaultFont set to 10pt Arial. See Also C1XLBook Class | C1XLBook Members | C1.Load Overload List . [Delphi] public procedure Load(String).C1Excel Namespace C1XLBook. overload.C1Excel Namespace C1XLBook. overload. an exception will be thrown. optionally skipping the data contained in the sheets. [Delphi] public procedure Load(String.Load Method · 41 Remarks The Clear method restores the C1XLBook object to its initial state.C1Excel Namespace | C1XLBook. See Also C1XLBook Class | C1XLBook Members | C1. Remarks If the file doesn't exist. [Visual Basic] Overloads Public Sub Load(String) [C#] public void Load(string). See Also C1XLBook Class | C1XLBook Members | C1. [Delphi] public procedure Load( fileName: String ). Boolean). [Visual Basic] Overloads Public Sub Load(String. bool). Parameters fileName Name of the xls file to load. C1Excel Namespace C1XLBook. [Delphi] public procedure Load( fileName: String. bool fillSheets ).42 · C1. _ ByVal fillSheets As Boolean _ ) [C#] public void Load( string fileName. fillSheets: Boolean ). overload. false to read only the sheet names.Load Overload List C1XLBook. [Visual Basic] Public Shared Function PixelsToTwips( _ ByVal pix As Double _ ) As Integer [C#] public static int PixelsToTwips( double pix ). fillSheets True to read the sheet data. This is useful in situations where you want to examine the contents of the xls file (for example. to ensure that you will not overwrite an existing sheet). . Parameters fileName Name of the xls file to load.C1Excel Namespace | C1XLBook.PixelsToTwips Method Converts a pixel measurement into twips (1/20th of a point). [Visual Basic] Overloads Public Sub Load( _ ByVal fileName As String. [Delphi] public class function PixelsToTwips( pix: Double ): Int32. See Also C1XLBook Class | C1XLBook Members | C1. Remarks Loading the worksheets without their data is much faster than loading the entire workbook.Load Method (String. Boolean) Loads a list of the worksheets in an xls file. optionally skipping the data contained in the sheets. This method provides an easy way to convert pixel measurements into twips using the current screen resolution. an exception will be thrown. [Visual Basic] Public Sub Save( _ ByVal fileName As String _ ) [C#] public void Save( string fileName ). Return Value Measurement in twips.Save Method · 43 Parameters pix Measurement in screen pixels. on the other hand. TwipsToPixels See Also C1XLBook Class | C1XLBook Members | C1.NET controls.TwipsToPixels Method Converts a twip measurement into screen pixels. Remarks Excel stores measurements in twips (1/20th of a point). This typically indicates that the file is currently open by another application (such as Microsoft Excel). Remarks If the file can't be created. usually express measurements in pixels. [Delphi] public procedure Save( fileName: String ). See Also C1XLBook Class | C1XLBook Members | C1. Parameters fileName Name of the xls file to save.C1XLBook.C1Excel Namespace C1XLBook. a resolution-independent unit.C1Excel Namespace C1XLBook. [Visual Basic] Public Shared Function TwipsToPixels( _ ByVal twip As Double _ ) As Integer .Save Method Saves the C1XLBook to an xls file. . General. This method provides an easy way to convert pixel measurements into twips using the current screen resolution. Fill cell.C1Excel Assembly: C1.2.C1Excel Namespace [C#] public static int TwipsToPixels( double twip ). a resolution-independent unit.C1Excel.dll) Members Member name Center Fill General Justify Description Align to cell center. Selection. numbers to the right. Undefined). Namespace: C1. Parameters twip Measurement in twips. Align strings to the left. . on the other hand. [Delphi] public class function TwipsToPixels( twip: Double ): Int32. Fill. Left. Right. [Visual Basic] Public Enum XLAlignHorzEnum [C#] public enum XLAlignHorzEnum [Delphi] type XLAlignHorzEnum = (Center. Justify content horizontally to span the whole cell width. repeating content as necessary.NET controls. Justify. Return Value Measurement in screen pixels. . PixelsToTwips See Also C1XLBook Class | C1XLBook Members | C1.C1Excel.2 (in C1. usually express measurements in pixels. Remarks Excel stores measurements in twips (1/20th of a point).44 · C1.C1Excel Namespace XLAlignHorzEnum Enumeration Specifies how to align cell content horizontally within a cell. Namespace: C1.XLCell [Visual Basic] Public Class XLCell . For a list of all members of this type. Not specified (use default).C1Excel.C1Excel.XLAlignVertEnum Enumeration · 45 Member name Left Right Selection Undefined See Also C1. XLCell Class Represents individual cells in a XLSheet. Justify content vertically to span the whole cell height.C1Excel Namespace Description Align to cell left. Undefined). Center. XLAlignVertEnum Enumeration Specifies how to align cell content vertically within a cell. Style.C1Excel.2 (in C1. System. Align to cell right. Justify.dll) Members Member name Bottom Center Justify Top Undefined See Also C1. Align to selection center (may span multiple cells). see XLCell Members. Align to cell center.C1Excel Assembly: C1. [Visual Basic] Public Enum XLAlignVertEnum [C#] public enum XLAlignVertEnum [Delphi] type XLAlignVertEnum = (Bottom. and provides properties for getting and setting the cell Value. Align to cell top.2.C1Excel Namespace Description Align to cell bottom. and Hyperlink. Top.Object C1. Not specified (use default). Because it creates cells automatically. begin book := C1XLBook.Save("c:\temp\test. r < 10.Save(@"c:\temp\test. the code below creates a new C1XLBook. c++) { XLCell cell = sheet[r. use the XLSheet indexer (Item property).Sheets(0) Dim r As Integer For r = 0 To 9 Dim c As Integer For c = 0 To 9 Dim cell As XLCell = sheet(r. • • .Value =(r + 1) *(c + 1) Next c Next r book. c: Integer. c) cell. } } book. then populates the first sheet with a 10 by 10 multiplication table: • Visual Basic Dim book As New C1XLBook() Dim sheet As XLSheet = book. c < 10. cell. for r := 0 to 9 do begin for c := 0 to 9 do begin cell := sheet[r. cell: XLCell. XLSheet sheet = book. the sheet will create the cell (as well as rows and columns if necessary) and will return a reference to the new cell. c].Sheets[0].46 · C1. Example For example.Create. the indexer is especially useful when creating and populating sheets. r: Integer.xls") C# C1XLBook book = new C1XLBook().C1Excel Namespace [C#] public class XLCell [Delphi] type XLCell = class. c].Sheets[0]. r++) { for (int c = 0. sheet: XLSheet. for (int r = 0. the reference will be returned as usual.xls").Value = (r+1) * (c+1). sheet := book. If not. Remarks To create cells. Delphi var book: C1XLBook. If the cell already exists. set.C1Excel Namespace Gets or sets a string that specifies an action to take when the cell is clicked. XLCell. end.Value := (r + 1) * (c + 1). Note how the code simply accesses the cells using the indexer. Gets or sets the value stored in the cell .C1Excel. The indexer takes care of all that automatically.xls').2.C1Excel Namespace Gets or sets a string that specifies an action to take when the cell is clicked. or cells. XLCell Properties The properties of the XLCell class are listed here.dll) See Also XLCell Members | C1.} . Public Properties Hyperlink Style Value See Also XLCell Class | C1. Gets or sets the XLStyle object associated with the cell.C1Excel Assembly: C1. end. Gets or sets the XLStyle object associated with the cell.Save('c:\temp\test.Hyperlink Property Gets or sets a string that specifies an action to take when the cell is clicked. columns. [Visual Basic] Public Property Hyperlink As String [C#] public string Hyperlink {get.Hyperlink Property · 47 cell. Namespace: C1.2 (in C1.XLCell. Gets or sets the value stored in the cell .C1Excel. There's no need to create any rows. see the XLCell Members topic. end. book.C1Excel Namespace XLCell Members XLCell overview Public Properties Hyperlink Style Value See Also XLCell Class | C1. For a complete list of XLCell class members. However. if a cell style defines the font and background color.} [Delphi] public property Value: Object read get_Value write set_Value. They may also contain references to files that are launched by the application associated with the file type (e. (2) row. [Visual Basic] Public Property Style As XLStyle [C#] public XLStyle Style {get. and cell styles and merges the style elements defined in each one in order to determine how the cell should be displayed. Excel combines the row.g. those will be applied regardless of the settings in the row and column styles.doc"). hyperlinks can be used to send e-mails (e. Remarks The appearance of each cell is defined by one or more XLStyle objects. Each cell may contain a hyperlink and a value. For example.g. "readme.Value Property Gets or sets the value stored in the cell . if you assign a hyperlink to a cell that has no value (Value == null).set. Remarks Hyperlinks may contain URLs that when clicked open a browser window and navigate to the specified site (e. When displaying a cell.48 · C1. See Also XLCell Class | XLCell Members | C1. The precedence of the styles is: (1) cell.com"). then the hyperlink text is automatically assigned to the cell value as well.componentone. in which case the cell is displayed using the other styles available or the default book style if no others are available. that will be applied regardless of the column style.set. column. and so on.com"). Finally. "http://www. See Also XLCell Class | XLCell Members | C1. (4) default style. "mailto:joe@foo. The cell style may be null.g.C1Excel Namespace XLCell. If the row style defines an alignment.} [Delphi] public property Style: XLStyle read get_Style write set_Style. . (3) column.Style Property Gets or sets the XLStyle object associated with the cell.C1Excel Namespace XLCell. [Visual Basic] Public Property Value As Object [C#] public object Value {get.C1Excel Namespace [Delphi] public property Hyperlink: String read get_Hyperlink write set_Hyperlink. See Also XLCell Class | XLCell Members | C1. and stored in the sheet as such.C1Excel Assembly: C1. System. Gets index of the left column in the range. numeric.XLCellRange [Visual Basic] Public Class XLCellRange [C#] public class XLCellRange [Delphi] type XLCellRange = class. Gets the number of rows in the range.2. Gets the index of the top row in the range. Creates an instance of a XLCellRange object containing an empty range. Gets or sets the index of the last row in the range.Object C1. Namespace: C1. . System.2 (in C1. For a list of all members of this type. Other types of object can't be saved into Excel files.XLCellRange Class · 49 Remarks The value may contain strings.C1Excel. see XLCellRange Members. The only way to tell the difference between a DateTime value and a double in Excel is by way of the format associated with the cell (Format property). or null objects. Gets or sets the index of the last column in the range.C1Excel Namespace XLCellRange Members XLCellRange overview Public Constructors XLCellRange Constructor Public Properties ColumnCount ColumnFrom ColumnTo IsEmpty RowCount RowFrom RowTo Gets the number of columns in the range. boolean.C1Excel. Determines whether the range is empty.C1Excel.DateTime.C1Excel Namespace XLCellRange Class Represents a range of XLCell objects in a XLSheet. DateTime values are internally converted into doubles.dll) See Also XLCellRange Members | C1. 50 · C1.C1Excel Namespace Public Methods Contains Intersects See Also XLCellRange Class | C1.C1Excel Namespace Determines whether the range contains a specific cell. Determines whether the range intersects another range. XLCellRange Constructor Overload List Creates an instance of a XLCellRange object containing an empty range. [Visual Basic] Public Function New() [C#] public XLCellRange(); [Delphi] public constructor Create(); overload; Creates an instance of a XLCellRange object containing a specified range. [Visual Basic] Public Function New(Integer, Integer, Integer, Integer) [C#] public XLCellRange(int, int, int, int); [Delphi] public constructor Create(Int32; Int32; Int32; Int32); overload; See Also XLCellRange Class | XLCellRange Members | C1.C1Excel Namespace XLCellRange Constructor () Creates an instance of a XLCellRange object containing an empty range. [Visual Basic] Public Function New() [C#] public XLCellRange() [Delphi] public constructor Create(); overload; See Also XLCellRange Class | XLCellRange Members | C1.C1Excel Namespace | XLCellRange Constructor Overload List XLCellRange Constructor (Int32, Int32, Int32, Int32) Creates an instance of a XLCellRange object containing a specified range. [Visual Basic] Public Function New( _ ByVal rowFrom As Integer, _ ByVal rowTo As Integer, _ ByVal colFrom As Integer, _ ByVal colTo As Integer _ ) XLCellRange Class · 51 [C#] public int int int int ); XLCellRange( rowFrom, rowTo, colFrom, colTo [Delphi] public constructor Create( rowFrom: Int32; rowTo: Int32; colFrom: Int32; colTo: Int32 ); overload; Parameters rowFrom Top row in the range. rowTo Bottom row in the range. colFrom Left column in the range. colTo Bottom column in the range. See Also XLCellRange Class | XLCellRange Members | C1.C1Excel Namespace | XLCellRange Constructor Overload List XLCellRange Properties The properties of the XLCellRange class are listed here. For a complete list of XLCellRange class members, see the XLCellRange Members topic. Public Properties ColumnCount ColumnFrom ColumnTo IsEmpty RowCount RowFrom RowTo See Also XLCellRange Class | C1.C1Excel Namespace Gets the number of columns in the range. Gets index of the left column in the range. Gets or sets the index of the last column in the range. Determines whether the range is empty. Gets the number of rows in the range. Gets the index of the top row in the range. Gets or sets the index of the last row in the range. 52 · C1.C1Excel Namespace XLCellRange.ColumnCount Property Gets the number of columns in the range. [Visual Basic] Public ReadOnly Property ColumnCount As Integer [C#] public int ColumnCount {get;} [Delphi] public property ColumnCount: Int32 read get_ColumnCount; See Also XLCellRange Class | XLCellRange Members | C1.C1Excel Namespace XLCellRange.ColumnFrom Property Gets index of the left column in the range. [Visual Basic] Public ReadOnly Property ColumnFrom As Integer [C#] public int ColumnFrom {get;} [Delphi] public property ColumnFrom: Int32 read get_ColumnFrom; See Also XLCellRange Class | XLCellRange Members | C1.C1Excel Namespace XLCellRange.ColumnTo Property Gets or sets the index of the last column in the range. [Visual Basic] Public Property ColumnTo As Integer [C#] public int ColumnTo {get;set;} [Delphi] public property ColumnTo: Int32 read get_ColumnTo write set_ColumnTo; See Also XLCellRange Class | XLCellRange Members | C1.C1Excel Namespace XLCellRange.IsEmpty Property Determines whether the range is empty. [Visual Basic] Public ReadOnly Property IsEmpty As Boolean } [Delphi] public property RowTo: Int32 read get_RowTo write set_RowTo. [Visual Basic] Public ReadOnly Property RowCount As Integer [C#] public int RowCount {get.RowTo Property Gets or sets the index of the last row in the range.C1Excel Namespace XLCellRange.} [Delphi] public property RowFrom: Int32 read get_RowFrom.C1Excel Namespace XLCellRange.RowFrom Property Gets the index of the top row in the range.RowCount Property Gets the number of rows in the range. See Also XLCellRange Class | XLCellRange Members | C1.set.} [Delphi] public property RowCount: Int32 read get_RowCount.RowCount Property · 53 [C#] public bool IsEmpty {get.} [Delphi] public property IsEmpty: Boolean read get_IsEmpty. . See Also XLCellRange Class | XLCellRange Members | C1. [Visual Basic] Public ReadOnly Property RowFrom As Integer [C#] public int RowFrom {get.C1Excel Namespace XLCellRange. See Also XLCellRange Class | XLCellRange Members | C1. [Visual Basic] Public Property RowTo As Integer [C#] public int RowTo {get.XLCellRange. [Delphi] public function Contains( row: Int32. int col ). col: Int32 ): Boolean. See Also XLCellRange Class | XLCellRange Members | C1.Intersects Method Determines whether the range intersects another range. For a complete list of XLCellRange class members. Public Methods Contains Intersects See Also XLCellRange Class | C1. [Visual Basic] Public Function Intersects( _ ByVal cr As XLCellRange _ ) As Boolean [C#] public bool Intersects( XLCellRange cr ).C1Excel Namespace See Also XLCellRange Class | XLCellRange Members | C1. _ ByVal col As Integer _ ) As Boolean [C#] public bool Contains( int row.Contains Method Determines whether the range contains a specific cell. . see the XLCellRange Members topic. Determines whether the range intersects another range. [Visual Basic] Public Function Contains( _ ByVal row As Integer.C1Excel Namespace XLCellRange. XLCellRange.54 · C1.C1Excel Namespace XLCellRange Methods The methods of the XLCellRange class are listed here.C1Excel Namespace Determines whether the range contains a specific cell. 2.C1Excel.C1Excel. IEnumerable [C#] public class XLCellRangeCollection : ICollection.XLCellRangeCollection [Visual Basic] Public Class XLCellRangeCollection Implements ICollection. ICollection.dll) See Also XLCellRangeCollection Members | C1. Removes all XLCellRange objects from the collection. Gets the position of an XLCellRange object in the collection. Namespace: C1. Gets the XLSheet object that owns the collection.2 (in C1. See Also XLCellRange Class | XLCellRange Members | C1.C1Excel Assembly: C1.C1Excel. see XLCellRangeCollection Members. IEnumerable [Delphi] type XLCellRangeCollection = class (TObject. Gets the number of XLCellRange objects in the collection.C1Excel Namespace XLCellRangeCollection Members XLCellRangeCollection overview Public Properties Count Item Sheet Public Methods Add Clear Contains IndexOf Insert Overloaded. Gets the XLCellRange object at the specified position in the collection. IEnumerable).XLCellRangeCollection Class · 55 [Delphi] public function Intersects( cr: XLCellRange ): Boolean. . System. Checks whether the collection contains a specific XLCellRange object.C1Excel Namespace XLCellRangeCollection Class Represents a collection of XLCellRange objects on an XLSheet. Appends an XLCellRange object to the collection. For a list of all members of this type. Inserts an XLCellRange object at a specific position in the collection.Object C1. See Also XLCellRangeCollection Class | XLCellRangeCollection Members | C1. Gets the XLCellRange object at the specified position in the collection. Public Properties Count Item Sheet See Also XLCellRangeCollection Class | C1.C1Excel Namespace XLCellRangeCollection.C1Excel Namespace Gets the number of XLCellRange objects in the collection. Removes an XLCellRange object at a specific position from the collection.C1Excel Namespace Remove RemoveAt See Also Removes an XLCellRange object from the collection. [Visual Basic] Public ReadOnly Property Count As Integer [C#] public int Count {get. Gets the XLSheet object that owns the collection. XLCellRangeCollection. [Visual Basic] Public Default ReadOnly Property Item( _ ByVal index As Integer _ ) As XLCellRange [C#] public XLCellRange this[ int index ] {get. For a complete list of XLCellRangeCollection class members.} [Delphi] public property Count: Int32 read get_Count. see the XLCellRangeCollection Members topic.56 · C1. XLCellRangeCollection Class | C1.Count Property Gets the number of XLCellRange objects in the collection.Item Property Gets the XLCellRange object at the specified position in the collection.} .C1Excel Namespace XLCellRangeCollection Properties The properties of the XLCellRangeCollection class are listed here. Gets the position of an XLCellRange object in the collection.Sheet Property Gets the XLSheet object that owns the collection. Appends an XLCellRange object to the collection.C1Excel Namespace Overloaded. Inserts an XLCellRange object at a specific position in the collection. [Visual Basic] Overloads Public Function Add(Integer. Checks whether the collection contains a specific XLCellRange object. Removes an XLCellRange object from the collection.Sheet Property · 57 [Delphi] public property Item[ index: Int32 ]: XLCellRange read get_Item. Integer) As XLCellRange . For a complete list of XLCellRangeCollection class members. Public Methods Add Clear Contains IndexOf Insert Remove RemoveAt See Also XLCellRangeCollection Class | C1. see the XLCellRangeCollection Members topic. Integer. See Also XLCellRangeCollection Class | XLCellRangeCollection Members | C1. XLCellRangeCollection. See Also XLCellRangeCollection Class | XLCellRangeCollection Members | C1.} [Delphi] public property Sheet: XLSheet read get_Sheet. [Visual Basic] Public ReadOnly Property Sheet As XLSheet [C#] public XLSheet Sheet {get.C1Excel Namespace XLCellRangeCollection. Removes all XLCellRange objects from the collection.C1Excel Namespace XLCellRangeCollection Methods The methods of the XLCellRangeCollection class are listed here.XLCellRangeCollection. Removes an XLCellRange object at a specific position from the collection. Integer.Add Method Overload List Creates an XLCellRange object and appends it to the collection. 58 · C1. overload. Parameters rowIndex Index of the top row in the cell range. rowCount: Int32. [Delphi] public function Add(Int32.Add Method (Int32. int). [Visual Basic] Overloads Public Function Add( _ ByVal rowIndex As Integer. colIndex: Int32. XLCellRange Add( rowIndex. Int32) Creates an XLCellRange object and appends it to the collection. colCount Number of columns in the cell range. [Delphi] public function Add(XLCellRange) : XLCellRange. Int32.C1Excel Namespace [C#] public XLCellRange Add(int. _ ByVal rowCount As Integer. int. .C1Excel Namespace XLCellRangeCollection. _ ByVal colCount As Integer _ ) As XLCellRange [C#] public int int int int ). Int32) : XLCellRange. Int32. Int32. Appends an XLCellRange object to the collection. colIndex Index of the left column in the cell range. int. colCount [Delphi] public function Add( rowIndex: Int32. colCount: Int32 ): XLCellRange. overload. colIndex. rowCount Number of rows in the cell range. [Visual Basic] Overloads Public Function Add(XLCellRange) As XLCellRange [C#] public XLCellRange Add(XLCellRange). rowCount. _ ByVal colIndex As Integer. See Also XLCellRangeCollection Class | XLCellRangeCollection Members | C1. Int32. overload. Add Method (XLCellRange) Appends an XLCellRange object to the collection.Clear Method Removes all XLCellRange objects from the collection. See Also XLCellRangeCollection Class | XLCellRangeCollection Members | C1. [Visual Basic] Overloads Public Function Add( _ ByVal cr As XLCellRange _ ) As XLCellRange [C#] public XLCellRange Add( XLCellRange cr ). See Also XLCellRangeCollection Class | XLCellRangeCollection Members | C1. overload.C1Excel Namespace | XLCellRangeCollection. or null if the object could not be added to the collection (usually because it overlaps another cell range already in the collection). Return Value A reference to the object if it was successfully added to the collection.C1Excel Namespace | XLCellRangeCollection. . Parameters cr XLCellRange object to add to the collection.XLCellRangeCollection.Clear Method · 59 Return Value A reference to the object if it was successfully added to the collection.Add Overload List XLCellRangeCollection. [Visual Basic] Public Sub Clear() [C#] public void Clear() [Delphi] public procedure Clear().Add Overload List XLCellRangeCollection. [Delphi] public function Add( cr: XLCellRange ): XLCellRange. or null if the object could not be added to the collection (usually because it overlaps another cell range already in the collection). .IndexOf Method Gets the position of an XLCellRange object in the collection.C1Excel Namespace XLCellRangeCollection. [Delphi] public function IndexOf( cr: XLCellRange ): Int32.C1Excel Namespace XLCellRangeCollection. [Delphi] public function Contains( cr: XLCellRange ): Boolean. Return Value True if the collection contains the range.60 · C1. [Visual Basic] Public Function Contains( _ ByVal cr As XLCellRange _ ) As Boolean [C#] public bool Contains( XLCellRange cr ). [Visual Basic] Public Function IndexOf( _ ByVal cr As XLCellRange _ ) As Integer [C#] public int IndexOf( XLCellRange cr ). See Also XLCellRangeCollection Class | XLCellRangeCollection Members | C1. Parameters cr XLCellRange object to look for. False otherwise.C1Excel Namespace See Also XLCellRangeCollection Class | XLCellRangeCollection Members | C1.Contains Method Checks whether the collection contains a specific XLCellRange object. See Also XLCellRangeCollection Class | XLCellRangeCollection Members | C1.Insert Method Inserts an XLCellRange object at a specific position in the collection. [Delphi] public function Insert( index: Int32. Return Value A reference to the object if it was successfully added to the collection. or -1 if the object is not a member of the collection See Also XLCellRangeCollection Class | XLCellRangeCollection Members | C1.C1Excel Namespace XLCellRangeCollection. XLCellRange cr ). Return Value The position of the object in the collection. cr Object to insert in the collection.Insert Method · 61 Parameters cr XLCellRange object to look for. Parameters index Position where the object will be inserted. or null if the object could not be added to the collection (usually because it overlaps another cell range already in the collection). [Visual Basic] Public Sub Remove( _ ByVal cr As XLCellRange _ ) . [Visual Basic] Public Function Insert( _ ByVal index As Integer.XLCellRangeCollection.C1Excel Namespace XLCellRangeCollection.Remove Method Removes an XLCellRange object from the collection. _ ByVal cr As XLCellRange _ ) As XLCellRange [C#] public XLCellRange Insert( int index. cr: XLCellRange ): XLCellRange. 62 · C1.C1Excel Namespace [C#] public void Remove( XLCellRange cr ).Object C1. see XLColumn Members. [Visual Basic] Public Sub RemoveAt( _ ByVal index As Integer _ ) [C#] public void RemoveAt( int index ). [Delphi] public procedure RemoveAt( index: Int32 ). See Also XLCellRangeCollection Class | XLCellRangeCollection Members | C1. and visibility.RemoveAt Method Removes an XLCellRange object at a specific position from the collection.C1Excel. [Delphi] public procedure Remove( cr: XLCellRange ).C1Excel Namespace XLCellRangeCollection. System.XLColumn . Parameters cr XLCellRange object to remove from the collection. Parameters index Index of the object to remove from the collection.C1Excel Namespace XLColumn Class Represents a column in a worksheet. provides properties for setting the column's width. style. See Also XLCellRangeCollection Class | XLCellRangeCollection Members | C1. For a list of all members of this type. the column will be blank. If you later re-insert that same column back into the collection.XLColumn Members · 63 [Visual Basic] Public Class XLColumn [C#] public class XLColumn [Delphi] type XLColumn = class. Gets or sets whether the column is visible. XLColumn Constructor Creates a new instance of the XLColumn class.C1Excel Namespace XLColumn Members XLColumn overview Public Constructors XLColumn Constructor Public Properties Book Sheet Style Visible Width See Also XLColumn Class | C1. Remarks The XLColumn objects do not contain any data. Gets a reference to the parent XLSheet object.C1Excel. the data will be lost.dll) See Also XLColumn Members | C1.C1Excel Namespace Gets a reference to the parent C1XLBook object. Namespace: C1. Gets or sets the XLStyle object that determines the appearance of the column. Gets or sets the width of the column.2 (in C1. Creates a new instance of the XLColumn class.C1Excel. If you remove a column from the collection. .C1Excel Assembly: C1. in twips. [Visual Basic] Public Function New() [C#] public XLColumn() [Delphi] public constructor Create().2. C1Excel Namespace See Also XLColumn Class | XLColumn Members | C1. Gets or sets the XLStyle object that determines the appearance of the column. [Visual Basic] Public ReadOnly Property Book As C1XLBook [C#] public C1XLBook Book {get.64 · C1.C1Excel Namespace .} [Delphi] public property Book: C1XLBook read get_Book.C1Excel Namespace Gets a reference to the parent C1XLBook object.C1Excel Namespace XLColumn. See Also XLColumn Class | XLColumn Members | C1. For a complete list of XLColumn class members. see the XLColumn Members topic. Gets or sets whether the column is visible.Book Property Gets a reference to the parent C1XLBook object.Sheet Property Gets a reference to the parent XLSheet object. [Visual Basic] Public ReadOnly Property Sheet As XLSheet [C#] public XLSheet Sheet {get.C1Excel Namespace XLColumn Properties The properties of the XLColumn class are listed here. See Also XLColumn Class | XLColumn Members | C1. Gets a reference to the parent XLSheet object. Public Properties Book Sheet Style Visible Width See Also XLColumn Class | C1. XLColumn. Gets or sets the width of the column.} [Delphi] public property Sheet: XLSheet read get_Sheet. in twips. Remarks A value of -1 indicates that the column should be displayed using the sheet's DefaultColumnWidth.} [Delphi] public property Style: XLStyle read get_Style write set_Style.set.} [Delphi] public property Visible: Boolean read get_Visible write set_Visible.C1Excel Namespace .C1Excel Namespace XLColumn. [Visual Basic] Public Property Style As XLStyle [C#] public XLStyle Style {get.} [Delphi] public property Width: Int32 read get_Width write set_Width.XLColumn. See Also XLColumn Class | XLColumn Members | C1.set. See Also XLColumn Class | XLColumn Members | C1. use the TwipsToPixels and PixelsToTwips methods. See Also XLColumn Class | XLColumn Members | C1. [Visual Basic] Public Property Visible As Boolean [C#] public bool Visible {get. [Visual Basic] Public Property Width As Integer [C#] public int Width {get.set. in twips.C1Excel Namespace XLColumn.Visible Property Gets or sets whether the column is visible.Style Property · 65 XLColumn.Width Property Gets or sets the width of the column.Style Property Gets or sets the XLStyle object that determines the appearance of the column. To convert between pixels and twips. C1Excel.3]. ICollection.3) and in doing so automatically creates four rows and four columns automatically: • Visual Basic Dim book As New C1XLBook() Dim sheet As XLSheet = book.Create. sheet: XLSheet. If you remove a column from the collection. enumerating.C1Excel Namespace . For example. Remarks The collection has methods for counting. sheet := book. IEnumerable [Delphi] type XLColumnCollection = class (TObject.3].C1Excel Namespace XLColumnCollection Class Represents a collection of XLColumn objects that represent the individual columns in each XLSheet.C1Excel. XLSheet sheet = book.C1Excel. 3) ' creates 4 rows and 4 columns C# C1XLBook book = new C1XLBook(). Example Note that you can create columns automatically by using the sheet's indexer. // creates 4 rows and 4 columns Delphi var book: C1XLBook.Sheets(0) Dim cell As XLCell = sheet(3. XLCell cell = sheet[3. the data will be lost. //creates 4 rows and 4 columns end. For a list of all members of this type. begin book := C1XLBook. IEnumerable [C#] public class XLColumnCollection : ICollection. the column will be blank.XLColumnCollection [Visual Basic] Public Class XLColumnCollection Implements ICollection. IEnumerable).C1Excel Assembly: C1.Sheets[0]. cell := sheet[3.2 (in C1.66 · C1.Object C1. see XLColumnCollection Members. • • Namespace: C1. System.2. and removing columns from the collection. the following code retrieves the cell at coordinates (3.dll) See Also XLColumnCollection Members | C1.Sheets[0]. If you later re-insert that same column back into the collection. The XLColumn objects do not contain any data. cell: XLCell. adding. Gets or sets the number of frozen columns in the collection. Gets the number of items in the collection. Determines whether an XLColumn is a member of the collection. XLColumnCollection Properties The properties of the XLColumnCollection class are listed here. Gets the number of items in the collection. Gets the index of a given XLRow object in the collection. For a complete list of XLColumnCollection class members. Removes an XLColumn object from the collection.C1Excel Namespace Gets a reference to the parent C1XLBook object. Returns a reference to the XLColumn object at the specified index. Removes all items from the collection. Returns a reference to the XLColumn object at the specified index. Public Properties Book Count Frozen Item Sheet See Also XLColumnCollection Class | C1. Creates a new XLColumn object and inserts it at a specific position in the collection.C1Excel Namespace Overloaded. Removes the XLColumn object at a given position from the collection. . Gets a reference to the parent C1XLBook object. Overloaded. see the XLColumnCollection Members topic. Gets or sets the number of frozen columns in the collection. Creates a new XLColumn object and adds it to the collection. Gets a reference to the parent XLSheet object.XLColumnCollection Members · 67 XLColumnCollection Members XLColumnCollection overview Public Properties Book Count Frozen Item Sheet Public Methods Add Clear Contains IndexOf Insert Remove RemoveAt See Also XLColumnCollection Class | C1. Gets a reference to the parent XLSheet object. set. See Also XLColumnCollection Class | XLColumnCollection Members | C1.Count Property Gets the number of items in the collection. They are useful for displaying row headers. Remarks Frozen columns are displayed on the right side of the sheet and do not scroll horizontally. See Also XLColumnCollection Class | XLColumnCollection Members | C1.Frozen Property Gets or sets the number of frozen columns in the collection.C1Excel Namespace XLColumnCollection.C1Excel Namespace XLColumnCollection. [Visual Basic] Public ReadOnly Property Count As Integer [C#] public int Count {get. [Visual Basic] Public Property Frozen As Integer [C#] public int Frozen {get.} [Delphi] public property Book: C1XLBook read get_Book. See Also XLColumnCollection Class | XLColumnCollection Members | C1. [Visual Basic] Public ReadOnly Property Book As C1XLBook [C#] public C1XLBook Book {get.C1Excel Namespace XLColumnCollection.Book Property Gets a reference to the parent C1XLBook object.68 · C1.} [Delphi] public property Count: Int32 read get_Count.} [Delphi] public property Frozen: Int32 read get_Frozen write set_Frozen. .Item Property Returns a reference to the XLColumn object at the specified index.C1Excel Namespace XLColumnCollection. Public Methods Add Clear Contains IndexOf Insert Overloaded.Sheet Property · 69 [Visual Basic] Public Default ReadOnly Property Item( _ ByVal index As Integer _ ) As XLColumn [C#] public XLColumn this[ int index ] {get.C1Excel Namespace XLColumnCollection. Removes all items from the collection. Remarks The indexer will create a new XLColumn object at the specified position if necessary. For a complete list of XLColumnCollection class members. Creates a new XLColumn object and adds it to the collection. see the XLColumnCollection Members topic.} [Delphi] public property Sheet: XLSheet read get_Sheet.} [Delphi] public property Item[ index: Int32 ]: XLColumn read get_Item. [Visual Basic] Public ReadOnly Property Sheet As XLSheet [C#] public XLSheet Sheet {get. Creates a new XLColumn object and inserts it at a specific position in the collection. It never returns null. See Also XLColumnCollection Class | XLColumnCollection Members | C1. Overloaded. See Also XLColumnCollection Class | XLColumnCollection Members | C1.C1Excel Namespace XLColumnCollection Methods The methods of the XLColumnCollection class are listed here. . Gets the index of a given XLRow object in the collection. Determines whether an XLColumn is a member of the collection.XLColumnCollection.Sheet Property Gets a reference to the parent XLSheet object. [Delphi] public function Add() : XLColumn. overload.Add Method () Creates a new XLColumn object and adds it to the collection. [Visual Basic] Overloads Public Function Add() As XLColumn [C#] public XLColumn Add(). [Visual Basic] Overloads Public Function Add() As XLColumn [C#] public XLColumn Add() [Delphi] public function Add(): XLColumn. overload. See Also XLColumnCollection Class | XLColumnCollection Members | C1.70 · C1. See Also XLColumnCollection Class | XLColumnCollection Members | C1.Add Overload List XLColumnCollection. [Delphi] public function Add(XLColumn) : XLColumn. Removes the XLColumn object at a given position from the collection.C1Excel Namespace XLColumnCollection.C1Excel Namespace XLColumnCollection.C1Excel Namespace Remove RemoveAt See Also Removes an XLColumn object from the collection.Add Method (XLColumn) Adds an XLColumn object to the collection. XLColumnCollection Class | C1. [Visual Basic] Overloads Public Function Add(XLColumn) As XLColumn [C#] public XLColumn Add(XLColumn).Add Method Overload List Creates a new XLColumn object and adds it to the collection.C1Excel Namespace | XLColumnCollection. Adds an XLColumn object to the collection. overload. Return Value A reference to the new XLColumn object. [Visual Basic] Overloads Public Function Add( _ ByVal col As XLColumn _ ) As XLColumn . Parameters col The item to add to the collection. Return Value A reference to the item that was added to the collection (in this case. [Delphi] public function Add( col: XLColumn ): XLColumn.XLColumnCollection. always the col parameter.Clear Method · 71 [C#] public XLColumn Add( XLColumn col ).Clear Method Removes all items from the collection. See Also XLColumnCollection Class | XLColumnCollection Members | C1. See Also XLColumnCollection Class | XLColumnCollection Members | C1. [Visual Basic] Public Function Contains( _ ByVal col As XLColumn _ ) As Boolean [C#] public bool Contains( XLColumn col ).Add Overload List XLColumnCollection. . [Visual Basic] Public Sub Clear() [C#] public void Clear() [Delphi] public procedure Clear(). overload.C1Excel Namespace | XLColumnCollection.Contains Method Determines whether an XLColumn is a member of the collection.C1Excel Namespace XLColumnCollection. or -1 if the item is not a member of the collection.72 · C1. Return Value The position of the item in the collection. See Also XLColumnCollection Class | XLColumnCollection Members | C1.IndexOf Method Gets the index of a given XLRow object in the collection. Parameters col Item to look for. See Also XLColumnCollection Class | XLColumnCollection Members | C1. Return Value True if the collection contains the item.C1Excel Namespace XLColumnCollection. [Delphi] public function IndexOf( col: XLColumn ): Int32.C1Excel Namespace XLColumnCollection.C1Excel Namespace [Delphi] public function Contains( col: XLColumn ): Boolean. [Visual Basic] Overloads Public Function Insert(Integer) As XLColumn [C#] public XLColumn Insert(int). False otherwise. [Visual Basic] Public Function IndexOf( _ ByVal col As XLColumn _ ) As Integer [C#] public int IndexOf( XLColumn col ). Parameters col Item to look for. [Delphi] public function Insert(Int32) : XLColumn.Insert Method Overload List Creates a new XLColumn object and inserts it at a specific position in the collection. . overload. C1Excel Namespace XLColumnCollection.Insert Method (Int32.Insert Method · 73 Inserts an XLColumn object at a specific position in the collection. . See Also XLColumnCollection Class | XLColumnCollection Members | C1. XLColumn col ). XLColumn) : XLColumn. [Delphi] public function Insert(Int32. Parameters index Position where the new item will be inserted.C1Excel Namespace | XLColumnCollection. [Delphi] public function Insert( index: Int32 ): XLColumn. XLColumn) As XLColumn [C#] public XLColumn Insert(int. overload.Insert Method (Int32) Creates a new XLColumn object and inserts it at a specific position in the collection.XLColumnCollection. [Visual Basic] Overloads Public Function Insert( _ ByVal index As Integer _ ) As XLColumn [C#] public XLColumn Insert( int index ). [Visual Basic] Overloads Public Function Insert(Integer. _ ByVal col As XLColumn _ ) As XLColumn [C#] public XLColumn Insert( int index. XLColumn) Inserts an XLColumn object at a specific position in the collection. overload. See Also XLColumnCollection Class | XLColumnCollection Members | C1. XLColumn). Return Value A reference to the new item. [Visual Basic] Overloads Public Function Insert( _ ByVal index As Integer.Insert Overload List XLColumnCollection. [Visual Basic] Public Function Remove( _ ByVal col As XLColumn _ ) As XLColumn [C#] public XLColumn Remove( XLColumn col ). col Item that will be inserted.Remove Method Removes an XLColumn object from the collection.C1Excel Namespace [Delphi] public function Insert( index: Int32. Parameters index Position where the item will be inserted. See Also XLColumnCollection Class | XLColumnCollection Members | C1. Return Value A reference to the item that was added to the collection.74 · C1. Return Value A reference to the item that was removed.C1Excel Namespace | XLColumnCollection. This is a limitation imposed by Excel.Insert Overload List XLColumnCollection. overload. See Also XLColumnCollection Class | XLColumnCollection Members | C1. Remarks The maximum number of XLColumn objects in a XLSheet is 256. col: XLColumn ): XLColumn. [Delphi] public function Remove( col: XLColumn ): XLColumn. Parameters col Item to be removed from the collection.C1Excel Namespace . Forward.C1Excel Assembly: C1.2 (in C1. No diagonal. Return Value A reference to the item that was removed from the collection. Namespace: C1. None).2. Forward diagonal (/). Parameters index Index of the item to remove from the collection. .C1Excel.XLColumnCollection.RemoveAt Method · 75 XLColumnCollection.C1Excel. See Also XLColumnCollection Class | XLColumnCollection Members | C1. [Visual Basic] Public Function RemoveAt( _ ByVal index As Integer _ ) As XLColumn [C#] public XLColumn RemoveAt( int index ).C1Excel Namespace XLDiagonalFlags Enumeration Specifies the type of diagonal line to draw across the cells.RemoveAt Method Removes the XLColumn object at a given position from the collection.dll) Members Member name Backward Forward None Description Backward diagonal (\). [Visual Basic] Public Enum XLDiagonalFlags [C#] public enum XLDiagonalFlags [Delphi] type XLDiagonalFlags = (Backward. [Delphi] public function RemoveAt( index: Int32 ): XLColumn. C1Excel. Slanted dash-dot.C1Excel Namespace See Also C1. Medium dashed. Thin. MediumDashDotted.2 (in C1. Hair. Double.C1Excel Namespace XLLineStyleEnum Enumeration Specifies the line style used for the cell borders. Thin. None. Medium dash-dot. [Visual Basic] Public Enum XLLineStyleEnum [C#] public enum XLLineStyleEnum [Delphi] type XLLineStyleEnum = (Dashed.dll) Members Member name Dashed Dotted Double Hair Medium MediumDashDotDotted MediumDashDotted MediumDashed None SlantedMediumDashDotted Thick Thin ThinDashDotDotted ThinDashDotted See Also C1. Medium dash-dot-dot. SlantedMediumDashDotted. MediumDashDotDotted. Thin dash-dot. ThinDashDotDotted. ThinDashDotted). . MediumDashed. Thick. Dotted. Medium.2.C1Excel Namespace Description Dashed. Double. Hair (one pixel). XLPatternEnum Enumeration Specifies the pattern used for To fill the cell background. Thin dash-dot-dot.76 · C1. Dotted.C1Excel. Namespace: C1. Medium. No line.C1Excel Assembly: C1. Thick. HorizontalStripe. ThinHorizontalStripe. ThinHorizontalCrosshatch. None. Vertical stripe pattern. Thin vertical stripe pattern.2 (in C1. . ThinReverseDiagonalStripe.C1Excel. No pattern (transparent).dll) Members Member name DiagonalCrosshatch DiagonalStripe Gray06 Gray12 Gray25 Gray50 Gray75 HorizontalStripe None ReverseDiagonalStripe Solid ThickDiagonalCrosshatch ThinDiagonalCrosshatch ThinDiagonalStripe ThinHorizontalCrosshatch ThinHorizontalStripe ThinReverseDiagonalStripe ThinVerticalStripe VerticalStripe See Also C1. Thin diagonal stripe pattern (/).2. ThickDiagonalCrosshatch. Reverse diagonal stripe pattern (\). Diagonal stripe pattern (/). Thin reverse diagonal stripe pattern (\). Gray25. 25% dotted pattern. 75% dotted pattern. Gray50. Solid. DiagonalStripe. ReverseDiagonalStripe. VerticalStripe). Gray12. Gray75. 12% dotted pattern. Thin horizontal stripe pattern. ThinVerticalStripe.C1Excel Assembly: C1.C1Excel. Horizontal stripe pattern. Gray06. Namespace: C1. ThinDiagonalStripe. Thin diagonal crosshatch pattern. Thick diagonal crosshatch pattern. Solid background. 6% dotted pattern. Thin horizontal crosshatch pattern.C1Excel Namespace Description Diagonal crosshatch pattern. 50% dotted pattern. ThinDiagonalCrosshatch.XLPatternEnum Enumeration · 77 [Visual Basic] Public Enum XLPatternEnum [C#] public enum XLPatternEnum [Delphi] type XLPatternEnum = (DiagonalCrosshatch. C1Excel Namespace XLPrintSettings Class Provides options and settings for printing XLSheet objects.C1Excel.Object C1. Gets or sets whether the sheet should be centered vertically on the page when printed. System. Namespace: C1.XLPrintSettings [Visual Basic] Public Class XLPrintSettings [C#] public class XLPrintSettings [Delphi] type XLPrintSettings = class.dll) See Also XLPrintSettings Members | C1.C1Excel. Creates a new instance of the XLPrintSettings class.C1Excel.78 · C1. Gets or sets whether to print the sheet in monochrome mode.2 (in C1. Gets or sets whether the sheet should be centered horizontally on the page when printed. The settings are used when printing the sheet from Excel. Remarks The settings are applied to each sheet. Gets or sets the number of copies to print. For a list of all members of this type. see XLPrintSettings Members. Gets or sets whether to print the sheet in draft quality mode. Fit the sheet to this number of pages across (0 means use as many as needed). and are accessible through the sheet's PrintSettings property.C1Excel Assembly: C1.2.C1Excel Namespace XLPrintSettings Members XLPrintSettings overview Public Constructors XLPrintSettings Constructor Public Properties AutoScale BlackAndWhite CenterHorizontal CenterVertical Copies DraftQuality FitPagesAcross Gets or sets the scaling mode used for printed output. . Note that C1XLBook does not provide any printing services. Set to a negative value to use the default margin. Gets or sets the bottom margin. Set to a negative value to use the default margin. in inches. Gets or sets the footer margin. in inches. Gets or sets whether to print the pages in rows (across first) or in columns (down first). Gets or sets whether to print the sheet in landscape mode. in inches. Set to a negative value to use the default margin. Gets or sets the top margin. Gets or sets the initial page number to use when printing the sheet. Gets or sets the string to be displayed as a page header when the sheet is printed. Gets or sets whether row and column headers (the areas with row numbers and column letters) will be printed. Gets or sets the left margin. Gets or sets the right margin.C1Excel Namespace Fit the sheet to this number of pages down (0 means use as many as needed). Gets or sets the string to be displayed as a page header when the sheet is printed. in inches. Set to a negative value to use the default margin. in inches. Gets or sets the paper size to use when printing the sheet.XLPrintSettings Constructor · 79 FitPagesDown Footer Header Landscape MarginBottom MarginFooter MarginHeader MarginLeft MarginRight MarginTop PaperKind PrintGridlines PrintHeaders PrintPagesInRows ScalingFactor StartPage See Also XLPrintSettings Class | C1. Gets or sets whether the gridlines will be printed. Set to a negative value to use the default margin. Set to a negative value to use the default margin. Gets or sets the header margin. in inches. XLPrintSettings Constructor Creates a new instance of the XLPrintSettings class. [Visual Basic] Public Function New() [C#] public XLPrintSettings() . Gets or sets the scaling factor (in percent) to use when printing the sheet. Public Properties AutoScale BlackAndWhite CenterHorizontal CenterVertical Copies DraftQuality FitPagesAcross FitPagesDown Footer Header Landscape MarginBottom MarginFooter MarginHeader MarginLeft MarginRight MarginTop PaperKind Gets or sets the scaling mode used for printed output. Set to a negative value to use the default margin. . in inches.C1Excel Namespace [Delphi] public constructor Create(). Set to a negative value to use the default margin. Gets or sets whether to print the sheet in draft quality mode. Gets or sets whether to print the sheet in monochrome mode. Gets or sets the string to be displayed as a page header when the sheet is printed. in inches. see the XLPrintSettings Members topic. Set to a negative value to use the default margin. Set to a negative value to use the default margin. in inches. in inches.C1Excel Namespace XLPrintSettings Properties The properties of the XLPrintSettings class are listed here. Fit the sheet to this number of pages across (0 means use as many as needed). See Also XLPrintSettings Class | XLPrintSettings Members | C1. Gets or sets whether to print the sheet in landscape mode. Fit the sheet to this number of pages down (0 means use as many as needed). For a complete list of XLPrintSettings class members. Set to a negative value to use the default margin. Set to a negative value to use the default margin. Gets or sets the right margin. in inches.80 · C1. Gets or sets the bottom margin. Gets or sets the number of copies to print. Gets or sets whether the sheet should be centered vertically on the page when printed. Gets or sets the footer margin. Gets or sets the left margin. Gets or sets the top margin. Gets or sets the paper size to use when printing the sheet. in inches. Gets or sets the string to be displayed as a page header when the sheet is printed. Gets or sets whether the sheet should be centered horizontally on the page when printed. Gets or sets the header margin. set. [Visual Basic] Public Property AutoScale As Boolean [C#] public bool AutoScale {get. Remarks If AutoScale is set to true. Gets or sets the scaling factor (in percent) to use when printing the sheet. then the printed sheet will be automatically scaled to fit the number of pages specified by the FitPagesAcross and FitPagesDown properties.C1Excel Namespace XLPrintSettings.} [Delphi] public property AutoScale: Boolean read get_AutoScale write set_AutoScale.set.AutoScale Property · 81 PrintGridlines PrintHeaders PrintPagesInRows ScalingFactor StartPage See Also XLPrintSettings Class | C1.BlackAndWhite Property Gets or sets whether to print the sheet in monochrome mode.C1Excel Namespace .C1Excel Namespace Gets or sets whether the gridlines will be printed. XLPrintSettings. See Also XLPrintSettings Class | XLPrintSettings Members | C1. then the printed sheet will be scaled according to the value of the ScalingFactor property. Gets or sets whether to print the pages in rows (across first) or in columns (down first). [Visual Basic] Public Property BlackAndWhite As Boolean [C#] public bool BlackAndWhite {get. See Also XLPrintSettings Class | XLPrintSettings Members | C1.AutoScale Property Gets or sets the scaling mode used for printed output.XLPrintSettings. Gets or sets whether row and column headers (the areas with row numbers and column letters) will be printed. Gets or sets the initial page number to use when printing the sheet. If AutoScale is set to false.} [Delphi] public property BlackAndWhite: Boolean read get_BlackAndWhite write set_BlackAndWhite. C1Excel Namespace XLPrintSettings.DraftQuality Property Gets or sets whether to print the sheet in draft quality mode.set. See Also XLPrintSettings Class | XLPrintSettings Members | C1.C1Excel Namespace XLPrintSettings. . See Also XLPrintSettings Class | XLPrintSettings Members | C1.82 · C1. [Visual Basic] Public Property CenterHorizontal As Boolean [C#] public bool CenterHorizontal {get.set.} [Delphi] public property CenterVertical: Boolean read get_CenterVertical write set_CenterVertical.C1Excel Namespace XLPrintSettings.CenterHorizontal Property Gets or sets whether the sheet should be centered horizontally on the page when printed.C1Excel Namespace XLPrintSettings. See Also XLPrintSettings Class | XLPrintSettings Members | C1.} [Delphi] public property CenterHorizontal: Boolean read get_CenterHorizontal write set_CenterHorizontal. [Visual Basic] Public Property Copies As Integer [C#] public int Copies {get.CenterVertical Property Gets or sets whether the sheet should be centered vertically on the page when printed.} [Delphi] public property Copies: Int32 read get_Copies write set_Copies.set. [Visual Basic] Public Property CenterVertical As Boolean [C#] public bool CenterVertical {get.Copies Property Gets or sets the number of copies to print. } [Delphi] public property FitPagesDown: Int32 read get_FitPagesDown write set_FitPagesDown.set. See Also XLPrintSettings Class | XLPrintSettings Members | C1. [Visual Basic] Public Property FitPagesAcross As Integer [C#] public int FitPagesAcross {get.set. causing C1Excel to calculate the scaling factor based on the given number of pages and to ignore the value of the ScalingFactor property.C1Excel Namespace XLPrintSettings. Remarks Setting the FitPagesAcross or FitPagesDown properties automatically sets the AutoScale property to true.set.FitPagesDown Property Fit the sheet to this number of pages down (0 means use as many as needed).FitPagesAcross Property Fit the sheet to this number of pages across (0 means use as many as needed). [Visual Basic] Public Property FitPagesDown As Integer [C#] public int FitPagesDown {get. Setting the FitPagesAcross or FitPagesDown properties automatically sets the AutoScale property to true.FitPagesAcross Property · 83 [Visual Basic] Public Property DraftQuality As Boolean [C#] public bool DraftQuality {get. ignoring the value of the ScalingFactor property. See Also XLPrintSettings Class | XLPrintSettings Members | C1. .} [Delphi] public property DraftQuality: Boolean read get_DraftQuality write set_DraftQuality. Remarks causes C1Excel to select fit to page print mode. causing C1Excel to calculate the scaling factor based on the given number of pages and to ignore the value of the ScalingFactor property.} [Delphi] public property FitPagesAcross: Int32 read get_FitPagesAcross write set_FitPagesAcross.C1Excel Namespace XLPrintSettings.XLPrintSettings. Remarks The footer string has the same structure and embedded commands as the header string. and "&R"). See the Header property for details. [Visual Basic] Public Property Header As String [C#] public string Header {get.C1Excel Namespace XLPrintSettings. "&C". i. Remarks The header string may contain special commands. The page header is divided into 3 sections: left.set. placeholders for the page number. All text and all commands following are part of the selected section. or text formatting attributes. center.Footer Property Gets or sets the string to be displayed as a page header when the sheet is printed. [Visual Basic] Public Property Footer As String [C#] public string Footer {get. See Also XLPrintSettings Class | XLPrintSettings Members | C1. current date. Each section is introduced by a special command ("&L". The following commands are available: &L Start of the left section &C Start of the centred section &R Start of the right section &P Current page number &N Page count &D Current date &T Current time .C1Excel Namespace See Also XLPrintSettings Class | XLPrintSettings Members | C1.Header Property Gets or sets the string to be displayed as a page header when the sheet is printed.} [Delphi] public property Header: String read get_Header write set_Header.C1Excel Namespace XLPrintSettings.84 · C1.} [Delphi] public property Footer: String read get_Footer write set_Footer.e. and right.set. Most of these fields are represented by single letters with a leading ampersand ("&"). See Also XLPrintSettings Class | XLPrintSettings Members | C1.} [Delphi] public property Landscape: Boolean read get_Landscape write set_Landscape. &[fontheight] Set font height in points.Landscape Property · 85 &A Sheet name &F File name without path &Z File path without file name &G Picture (file name) &B Bold toggle &I Italic toggle &U Underline toggle &E Double underle toggle &S Strikeout toggle &X Superscript toggle &Y Subscript toggle &"[fontname]" Set new font &"[fontname.MarginBottom Property Gets or sets the bottom margin.} [Delphi] public property MarginBottom: Double read get_MarginBottom write set_MarginBottom. [Visual Basic] Public Property MarginBottom As Double [C#] public double MarginBottom {get. . "Bold".Landscape Property Gets or sets whether to print the sheet in landscape mode.fontstyle]" Set new font with specified style.set. The style is in most cases "Regular". [Visual Basic] Public Property Landscape As Boolean [C#] public bool Landscape {get. in inches. See Also XLPrintSettings Class | XLPrintSettings Members | C1. or "Bold Italic".XLPrintSettings.set. Set to a negative value to use the default margin.C1Excel Namespace XLPrintSettings. "Italic".C1Excel Namespace XLPrintSettings. C1Excel Namespace .MarginLeft Property Gets or sets the left margin.set. in inches.} [Delphi] public property MarginLeft: Double read get_MarginLeft write set_MarginLeft.86 · C1. [Visual Basic] Public Property MarginLeft As Double [C#] public double MarginLeft {get. See Also XLPrintSettings Class | XLPrintSettings Members | C1.C1Excel Namespace XLPrintSettings. in inches. Set to a negative value to use the default margin. [Visual Basic] Public Property MarginHeader As Double [C#] public double MarginHeader {get. [Visual Basic] Public Property MarginFooter As Double [C#] public double MarginFooter {get. in inches.C1Excel Namespace See Also XLPrintSettings Class | XLPrintSettings Members | C1.set.C1Excel Namespace XLPrintSettings.MarginFooter Property Gets or sets the footer margin.C1Excel Namespace XLPrintSettings. See Also XLPrintSettings Class | XLPrintSettings Members | C1.} [Delphi] public property MarginHeader: Double read get_MarginHeader write set_MarginHeader.} [Delphi] public property MarginFooter: Double read get_MarginFooter write set_MarginFooter. Set to a negative value to use the default margin. Set to a negative value to use the default margin. See Also XLPrintSettings Class | XLPrintSettings Members | C1.set.MarginHeader Property Gets or sets the header margin. } [Delphi] public property MarginTop: Double read get_MarginTop write set_MarginTop. [Visual Basic] Public Property MarginTop As Double [C#] public double MarginTop {get. See Also XLPrintSettings Class | XLPrintSettings Members | C1.set. [Visual Basic] Public Property MarginRight As Double [C#] public double MarginRight {get.C1Excel Namespace XLPrintSettings.MarginRight Property · 87 XLPrintSettings. Set to a negative value to use the default margin.MarginRight Property Gets or sets the right margin. in inches.PaperKind Property Gets or sets the paper size to use when printing the sheet.C1Excel Namespace XLPrintSettings.} [Delphi] public property PaperKind: PaperKind read get_PaperKind write set_PaperKind.} [Delphi] public property MarginRight: Double read get_MarginRight write set_MarginRight. See Also XLPrintSettings Class | XLPrintSettings Members | C1.PrintGridlines Property Gets or sets whether the gridlines will be printed.set. in inches.set.MarginTop Property Gets or sets the top margin. Set to a negative value to use the default margin.C1Excel Namespace XLPrintSettings. [Visual Basic] Public Property PaperKind As PaperKind [C#] public PaperKind PaperKind {get.XLPrintSettings. . See Also XLPrintSettings Class | XLPrintSettings Members | C1. set. See Also XLPrintSettings Class | XLPrintSettings Members | C1.} [Delphi] public property PrintHeaders: Boolean read get_PrintHeaders write set_PrintHeaders.ScalingFactor Property Gets or sets the scaling factor (in percent) to use when printing the sheet.} [Delphi] public property PrintGridlines: Boolean read get_PrintGridlines write set_PrintGridlines.set. [Visual Basic] Public Property PrintPagesInRows As Boolean [C#] public bool PrintPagesInRows {get.C1Excel Namespace XLPrintSettings. See Also XLPrintSettings Class | XLPrintSettings Members | C1.} [Delphi] public property PrintPagesInRows: Boolean read get_PrintPagesInRows write set_PrintPagesInRows.C1Excel Namespace XLPrintSettings. See Also XLPrintSettings Class | XLPrintSettings Members | C1.PrintPagesInRows Property Gets or sets whether to print the pages in rows (across first) or in columns (down first).C1Excel Namespace XLPrintSettings.C1Excel Namespace [Visual Basic] Public Property PrintGridlines As Boolean [C#] public bool PrintGridlines {get. [Visual Basic] Public Property PrintHeaders As Boolean [C#] public bool PrintHeaders {get.88 · C1.PrintHeaders Property Gets or sets whether row and column headers (the areas with row numbers and column letters) will be printed.set. [Visual Basic] Public Property ScalingFactor As Integer . C1Excel.set. System.C1Excel Namespace .StartPage Property · 89 [C#] public int ScalingFactor {get.XLRow [Visual Basic] Public Class XLRow [C#] public class XLRow [Delphi] type XLRow = class.dll) See Also XLRow Members | C1. For a list of all members of this type. Namespace: C1. See Also XLPrintSettings Class | XLPrintSettings Members | C1.C1Excel Namespace XLPrintSettings.C1Excel Namespace XLRow Class Represents a row in a worksheet.StartPage Property Gets or sets the initial page number to use when printing the sheet.C1Excel Assembly: C1. Remarks Setting the ScalingFactor property automatically sets the AutoScale property to false.2 (in C1. See Also XLPrintSettings Class | XLPrintSettings Members | C1. causing C1Excel to use the selected scaling factor and to ignore the value of the FitPagesAcross and FitPagesDown properties.XLPrintSettings. [Visual Basic] Public Property StartPage As Integer [C#] public int StartPage {get.C1Excel. and visibility.Object C1. see XLRow Members.} [Delphi] public property StartPage: Int32 read get_StartPage write set_StartPage.set. style.} [Delphi] public property ScalingFactor: Int32 read get_ScalingFactor write set_ScalingFactor.C1Excel. provides properties for setting the row's height.2. .C1Excel Namespace Gets a reference to the parent C1XLBook object. Gets or sets the XLStyle object that determines the appearance of the row. in twips. in twips. Gets a reference to the parent XLSheet object. Gets a reference to the parent XLSheet object. XLRow Constructor Creates a new instance of the XLRow class. For a complete list of XLRow class members. Public Properties Book Height Sheet Style Visible Gets a reference to the parent C1XLBook object. [Visual Basic] Public Function New() [C#] public XLRow() [Delphi] public constructor Create().C1Excel Namespace XLRow Properties The properties of the XLRow class are listed here. Gets or sets the height of the row.C1Excel Namespace XLRow Members XLRow overview Public Constructors XLRow Constructor Public Properties Book Height Sheet Style Visible See Also XLRow Class | C1. Gets or sets the XLStyle object that determines the appearance of the row. Gets or sets whether the row is visible. Gets or sets the height of the row. see the XLRow Members topic. Gets or sets whether the row is visible. Creates a new instance of the XLRow class. See Also XLRow Class | XLRow Members | C1.90 · C1. C1Excel Namespace XLRow. use the TwipsToPixels and PixelsToTwips methods. See Also XLRow Class | XLRow Members | C1. Remarks A value of -1 indicates that the row should be displayed using the sheet's DefaultRowHeight. .} [Delphi] public property Height: Int32 read get_Height write set_Height.} [Delphi] public property Sheet: XLSheet read get_Sheet.set. See Also XLRow Class | XLRow Members | C1.Sheet Property Gets a reference to the parent XLSheet object.XLRow.Book Property · 91 See Also XLRow Class | C1.C1Excel Namespace XLRow. [Visual Basic] Public ReadOnly Property Sheet As XLSheet [C#] public XLSheet Sheet {get. [Visual Basic] Public Property Height As Integer [C#] public int Height {get. [Visual Basic] Public ReadOnly Property Book As C1XLBook [C#] public C1XLBook Book {get. in twips.C1Excel Namespace XLRow.} [Delphi] public property Book: C1XLBook read get_Book.Height Property Gets or sets the height of the row.Book Property Gets a reference to the parent C1XLBook object. To convert between pixels and twips. C1Excel Namespace XLRow. [Visual Basic] Public Property Style As XLStyle [C#] public XLStyle Style {get. [Visual Basic] Public Property Visible As Boolean [C#] public bool Visible {get. See Also XLRow Class | XLRow Members | C1.set. IEnumerable [Delphi] type XLRowCollection = class (TObject.XLRowCollection [Visual Basic] Public Class XLRowCollection Implements ICollection.92 · C1. System.} [Delphi] public property Style: XLStyle read get_Style write set_Style. ICollection.Style Property Gets or sets the XLStyle object that determines the appearance of the row. see XLRowCollection Members. IEnumerable [C#] public class XLRowCollection : ICollection.set. See Also XLRow Class | XLRow Members | C1.Visible Property Gets or sets whether the row is visible. .C1Excel Namespace XLRowCollection Class Represents a collection of XLRow objects that represent the individual rows in each XLSheet.C1Excel Namespace XLRow.C1Excel Namespace See Also XLRow Class | XLRow Members | C1. For a list of all members of this type.C1Excel.Object C1.} [Delphi] public property Visible: Boolean read get_Visible write set_Visible. IEnumerable). sheet = book. For example. Creates a new XLRow object and adds it to the collection.Create. end.3) and in doing so automatically creates four rows and four columns automatically: • Visual Basic Dim book As New C1XLBook() Dim sheet As XLSheet = book. //creates 4 rows and 4 columns. and removing rows from the collection. begin book := C1XLBook. sheet := book. the following code retrieves the cell at coordinates (3. adding. Gets the number of items in the collection.Sheets[0]. 3].C1Excel Namespace XLRowCollection Members XLRowCollection overview Public Properties Book Count Frozen Item Sheet Public Methods Add Clear Overloaded.2 (in C1. cell := sheet[3. • • Namespace: C1.C1Excel. // creates 4 rows and 4 columns Delphi var book: C1XLBook.2. Example Note that you can create rows automatically by using the sheet's indexer. cell: XLCell. sheet: XLSheet. enumerating.C1Excel. Gets a reference to the parent XLSheet object.dll) See Also XLRowCollection Members | C1. Returns a reference to the XLRow object at the specified index. Removes all items from the collection.C1Excel Assembly: C1.Sheets[0].3]. 3) ' creates 4 rows and 4 columns C# C1XLBook book = new C1XLBook(). XLCell cell = sheet[3. Gets or sets the number of frozen rows in the collection. Gets a reference to the parent C1XLBook object.Sheets(0) Dim cell As XLCell = sheet(3.XLRowCollection Members · 93 Remarks The collection has methods for counting. . See Also XLRowCollection Class | XLRowCollection Members | C1. Removes the XLRow object at a given position from the collection. Public Properties Book Count Frozen Item Sheet See Also XLRowCollection Class | C1.} [Delphi] public property Book: C1XLBook read get_Book. Gets or sets the number of frozen rows in the collection. . XLRowCollection.C1Excel Namespace XLRowCollection.Book Property Gets a reference to the parent C1XLBook object. Returns a reference to the XLRow object at the specified index.94 · C1. Gets the index of a given XLRow object in the collection. For a complete list of XLRowCollection class members. Removes an XLRow object from the collection. see the XLRowCollection Members topic. [Visual Basic] Public ReadOnly Property Book As C1XLBook [C#] public C1XLBook Book {get. XLRowCollection Properties The properties of the XLRowCollection class are listed here. Gets the number of items in the collection. Creates a new XLRow object and inserts it at a specific position in the collection. Overloaded. Gets a reference to the parent XLSheet object.C1Excel Namespace Gets a reference to the parent C1XLBook object.Count Property Gets the number of items in the collection.C1Excel Namespace Contains IndexOf Insert Remove RemoveAt See Also XLRowCollection Class | C1.C1Excel Namespace Determines whether an XLRow is a member of the collection. } [Delphi] public property Item[ index: Int32 ]: XLRow read get_Item.Frozen Property · 95 [Visual Basic] Public ReadOnly Property Count As Integer [C#] public int Count {get. It never returns null.} [Delphi] public property Frozen: Int32 read get_Frozen write set_Frozen. . [Visual Basic] Public Property Frozen As Integer [C#] public int Frozen {get. They are useful for displaying column headers.C1Excel Namespace XLRowCollection. Remarks The indexer will create a new XLRow object at the specified position if necessary.Frozen Property Gets or sets the number of frozen rows in the collection.} [Delphi] public property Count: Int32 read get_Count. Remarks Frozen rows are displayed on the top of the sheet and do not scroll vertically. See Also XLRowCollection Class | XLRowCollection Members | C1.Item Property Returns a reference to the XLRow object at the specified index. [Visual Basic] Public Default ReadOnly Property Item( _ ByVal index As Integer _ ) As XLRow [C#] public XLRow this[ int index ] {get.set. See Also XLRowCollection Class | XLRowCollection Members | C1.XLRowCollection.C1Excel Namespace XLRowCollection. [Visual Basic] Overloads Public Function Add() As XLRow [C#] public XLRow Add(). Removes the XLRow object at a given position from the collection. Gets the index of a given XLRow object in the collection. [Delphi] public function Add() : XLRow.C1Excel Namespace XLRowCollection.C1Excel Namespace XLRowCollection Methods The methods of the XLRowCollection class are listed here. Removes an XLRow object from the collection. See Also XLRowCollection Class | XLRowCollection Members | C1. [Visual Basic] Public ReadOnly Property Sheet As XLSheet [C#] public XLSheet Sheet {get. Creates a new XLRow object and adds it to the collection. overload.C1Excel Namespace See Also XLRowCollection Class | XLRowCollection Members | C1. Determines whether an XLRow is a member of the collection.Add Method Overload List Creates a new XLRow object and adds it to the collection.C1Excel Namespace Overloaded. XLRowCollection. see the XLRowCollection Members topic. Removes all items from the collection.} [Delphi] public property Sheet: XLSheet read get_Sheet. Public Methods Add Clear Contains IndexOf Insert Remove RemoveAt See Also XLRowCollection Class | C1. Overloaded. . For a complete list of XLRowCollection class members. Creates a new XLRow object and inserts it at a specific position in the collection.96 · C1.Sheet Property Gets a reference to the parent XLSheet object. [Visual Basic] Overloads Public Function Add() As XLRow [C#] public XLRow Add() [Delphi] public function Add(): XLRow. [Visual Basic] Overloads Public Function Add(XLRow) As XLRow [C#] public XLRow Add(XLRow). Return Value A reference to the item that was added to the collection (in this case.C1Excel Namespace XLRowCollection. .Add Method () Creates a new XLRow object and adds it to the collection. overload. See Also XLRowCollection Class | XLRowCollection Members | C1. Parameters row The item to add to the collection. overload. overload. [Visual Basic] Overloads Public Function Add( _ ByVal row As XLRow _ ) As XLRow [C#] public XLRow Add( XLRow row ). See Also XLRowCollection Class | XLRowCollection Members | C1.C1Excel Namespace | XLRowCollection. always the row parameter. [Delphi] public function Add(XLRow) : XLRow. [Delphi] public function Add( row: XLRow ): XLRow.Add Method · 97 Adds an XLRow object to the collection.Add Method (XLRow) Adds an XLRow object to the collection.Add Overload List XLRowCollection.XLRowCollection. Return Value A reference to the new XLRow object. IndexOf Method Gets the index of a given XLRow object in the collection.C1Excel Namespace | XLRowCollection.C1Excel Namespace XLRowCollection. Parameters row Item to look for.C1Excel Namespace See Also XLRowCollection Class | XLRowCollection Members | C1. [Delphi] public function Contains( row: XLRow ): Boolean.Clear Method Removes all items from the collection. . [Visual Basic] Public Sub Clear() [C#] public void Clear() [Delphi] public procedure Clear().C1Excel Namespace XLRowCollection. [Visual Basic] Public Function Contains( _ ByVal row As XLRow _ ) As Boolean [C#] public bool Contains( XLRow row ). See Also XLRowCollection Class | XLRowCollection Members | C1. See Also XLRowCollection Class | XLRowCollection Members | C1.98 · C1.Contains Method Determines whether an XLRow is a member of the collection. Return Value True if the collection contains the item. False otherwise.Add Overload List XLRowCollection. [Visual Basic] Overloads Public Function Insert(Integer) As XLRow [C#] public XLRow Insert(int). See Also XLRowCollection Class | XLRowCollection Members | C1. [Delphi] public function IndexOf( row: XLRow ): Int32. overload.Insert Method Overload List Creates a new XLRow object and inserts it at a specific position in the collection. [Delphi] public function Insert(Int32. [Delphi] public function Insert(Int32) : XLRow. [Visual Basic] Overloads Public Function Insert(Integer.XLRowCollection. XLRow) : XLRow. Inserts an XLRow object at a specific position in the collection.Insert Method (Int32) Creates a new XLRow object and inserts it at a specific position in the collection. See Also XLRowCollection Class | XLRowCollection Members | C1. or -1 if the item is not a member of the collection. XLRow).C1Excel Namespace XLRowCollection.C1Excel Namespace XLRowCollection. overload. Parameters row Item to look for.Insert Method · 99 [Visual Basic] Public Function IndexOf( _ ByVal row As XLRow _ ) As Integer [C#] public int IndexOf( XLRow row ). Return Value The position of the item in the collection. XLRow) As XLRow [C#] public XLRow Insert(int. [Visual Basic] Overloads Public Function Insert( _ ByVal index As Integer _ ) As XLRow . 100 · C1.C1Excel Namespace [C#] public XLRow Insert( int index ); [Delphi] public function Insert( index: Int32 ): XLRow; overload; Parameters index Position where the new item will be inserted. Return Value A reference to the new item. See Also XLRowCollection Class | XLRowCollection Members | C1.C1Excel Namespace | XLRowCollection.Insert Overload List XLRowCollection.Insert Method (Int32, XLRow) Inserts an XLRow object at a specific position in the collection. [Visual Basic] Overloads Public Function Insert( _ ByVal index As Integer, _ ByVal row As XLRow _ ) As XLRow [C#] public XLRow Insert( int index, XLRow row ); [Delphi] public function Insert( index: Int32; row: XLRow ): XLRow; overload; Parameters index Position where the item will be inserted. row Item that will be inserted. Return Value A reference to the item that was added to the collection. XLRowCollection.Remove Method · 101 Remarks The maximum number of XLRow objects in a XLSheet is 65,536. This is a limitation imposed by Excel. See Also XLRowCollection Class | XLRowCollection Members | C1.C1Excel Namespace | XLRowCollection.Insert Overload List XLRowCollection.Remove Method Removes an XLRow object from the collection. [Visual Basic] Public Function Remove( _ ByVal row As XLRow _ ) As XLRow [C#] public XLRow Remove( XLRow row ); [Delphi] public function Remove( row: XLRow ): XLRow; Parameters row Item to be removed from the collection. Return Value A reference to the item that was removed. See Also XLRowCollection Class | XLRowCollection Members | C1.C1Excel Namespace XLRowCollection.RemoveAt Method Removes the XLRow object at a given position from the collection. [Visual Basic] Public Function RemoveAt( _ ByVal index As Integer _ ) As XLRow [C#] public XLRow RemoveAt( int index ); [Delphi] public function RemoveAt( index: Int32 ): XLRow; 102 · C1.C1Excel Namespace Parameters index Index of the item to remove from the collection. Return Value A reference to the item that was removed from the collection. See Also XLRowCollection Class | XLRowCollection Members | C1.C1Excel Namespace XLSheet Class Represents individual worksheets in an Excel workbook ( C1XLBook). For a list of all members of this type, see XLSheet Members. System.Object C1.C1Excel.XLSheet [Visual Basic] Public Class XLSheet [C#] public class XLSheet [Delphi] type XLSheet = class; Remarks Provides indexers to get or set the value of individual cells ( XLCell) and to access the Rows and Columns on the sheet. Example Use the C1XLBook Sheets indexer to get an individual sheet. For example, the code below gets a reference to the first sheet on the book, then prints the number of rows and columns on the sheet: • Visual Basic Dim book As New C1XLBook() Dim sheet As XLSheet = book.Sheets(0) Console.WriteLine("Sheet has {0} rows and {1} columns", _ sheet.Rows.Count, sheet.Columns.Count) C# C1XLBook book = new C1XLBook(); XLSheet sheet = book.Sheets[0]; Console.WriteLine("Sheet has {0} rows and {1} columns", sheet.Rows.Count, sheet.Columns.Count); Delphi var sheet: XLSheet; book: C1XLBook; begin book := C1XLBook.Create; sheet := book.Sheets[0]; • • C1Excel. end.C1Excel Assembly: C1. Gets a reference to a cell at the specified coordinates. Gets a reference to the C1XLBook that owns the sheet. Gets or sets whether Excel should show the grid lines when displaying the sheet. sheet. XLSheet Properties The properties of the XLSheet class are listed here. Public Properties Book Gets a reference to the C1XLBook that owns the sheet. .XLSheet Members · 103 Console. Gets or sets a value that determines if the sheet is locked for editing. Gets a XLCellRangeCollection that contains the collection of cells that are merged on the sheet.Count). or null of the cell doesn't exist.C1Excel Namespace XLSheet Members XLSheet overview Public Properties Book Columns DefaultColumnWidth DefaultRowHeight Locked MergedCells Name PrintSettings Rows ShowGridLines Visible Public Methods Clone GetCell See Also XLSheet Class | C1.WriteLine('Sheet has {0} rows and {1} columns'. sheet.C1Excel Namespace Creates a copy of this sheet. Gets a reference to sheet's column collection. Gets or sets the name of the XLSheet.Count. Gets or sets the sheet's visibility. Gets or sets the default row height for the sheet (in twips).Columns. Gets or sets the default row height for the sheet (in twips). see the XLSheet Members topic.2 (in C1.C1Excel.dll) See Also XLSheet Members | C1.Rows. Namespace: C1. Gets or sets an XLPrintSettings object that controls how the sheet is printed. For a complete list of XLSheet class members. Gets a reference to sheet's row collection.2. 104 · C1.C1Excel Namespace XLSheet. [Visual Basic] Public ReadOnly Property Columns As XLColumnCollection [C#] public XLColumnCollection Columns {get. Gets or sets a value that determines if the sheet is locked for editing.Book Property Gets a reference to the C1XLBook that owns the sheet. Gets a XLCellRangeCollection that contains the collection of cells that are merged on the sheet.Columns Property Gets a reference to sheet's column collection. Gets or sets an XLPrintSettings object that controls how the sheet is printed.C1Excel Namespace Gets a reference to sheet's column collection. [Visual Basic] Public ReadOnly Property Book As C1XLBook [C#] public C1XLBook Book {get. Gets or sets the default row height for the sheet (in twips). Gets or sets whether Excel should show the grid lines when displaying the sheet. .} [Delphi] public property Book: C1XLBook read get_Book.C1Excel Namespace Columns DefaultColumnWidth DefaultRowHeight Locked MergedCells Name PrintSettings Rows ShowGridLines Visible See Also XLSheet Class | C1. Gets or sets the sheet's visibility. XLSheet. Gets or sets the name of the XLSheet. Gets a reference to sheet's row collection.} [Delphi] public property Columns: XLColumnCollection read get_Columns. Gets or sets the default row height for the sheet (in twips). See Also XLSheet Class | XLSheet Members | C1. [Visual Basic] Public Property DefaultColumnWidth As Integer [C#] public int DefaultColumnWidth {get. use the PixelsToTwips method. Remarks You can set the height of individual rows using the XLRow class.} [Delphi] public property DefaultColumnWidth: Int32 read get_DefaultColumnWidth write set_DefaultColumnWidth.C1Excel Namespace XLSheet. Remarks You can set the width of individual rows using the XLColumn class.DefaultRowHeight Property Gets or sets the default row height for the sheet (in twips).XLSheet. use the PixelsToTwips method. rather than pixels. The DefaultRowHeight property is expressed in twips (1/20th of a point).DefaultColumnWidth Property · 105 See Also XLSheet Class | XLSheet Members | C1.C1Excel Namespace .set. use the TwipsToPixels method in C1XLBook. Any columns that do not have a custom width assigned to them will be displayed using the sheet's DefaultColumnWidth. To convert pixels into twips. rather than pixels.C1Excel Namespace XLSheet. See Also XLSheet Class | XLSheet Members | C1. The DefaultColumnWidth property is expressed in twips (1/20th of a point). [Visual Basic] Public Property DefaultRowHeight As Integer [C#] public int DefaultRowHeight {get. This allows sheets to maintain their aspect regardless of the resolution of the display. use the TwipsToPixels method in C1XLBook.} [Delphi] public property DefaultRowHeight: Int32 read get_DefaultRowHeight write set_DefaultRowHeight. To convert pixels into twips.set. See Also XLSheet Class | XLSheet Members | C1. This allows sheets to maintain their aspect regardless of the resolution of the display. To convert twips into pixels. To convert twips into pixels. Any rows that do not have a custom height assigned to them will be displayed using the sheet's DefaultRowHeight.DefaultColumnWidth Property Gets or sets the default row height for the sheet (in twips). To lock most cells on a sheet and allow editing of only a few cells.Sheets[0]. except for the ones where the user is supposed to enter data. sheet.Style = dataEnTry sheet(1. lock the sheet. sheets are unlocked and styles are locked. XLSheet sheet = _c1xl.Clear().1).0).Locked Property Gets or sets a value that determines if the sheet is locked for editing. Example The code below creates a data entry sheet.BackColor = Color.Save("c:\temp\Protected. [Visual Basic] Public Property Locked As Boolean [C#] public bool Locked {get. By default.Locked = False dataEnTry.Style = dataEnTry ' save the book _c1xl. • Visual Basic ' start with a single locked sheet _c1xl. both the sheet and the cell style must have the Locked property set to true.Beige ' create data entry titles sheet(0.1).C1Excel Namespace XLSheet.0). then create an unlocked style and assign it to the cells that should be editable.0).Value = "Name:" sheet(1.Clear() Dim sheet As XLSheet = _c1xl.Value = "Phone #:" ' create data enTry cells (unlocked) sheet(0.Value = "Address:" sheet(2.Locked = true.xls") • C# // start with a single locked sheet _c1xl.} [Delphi] public property Locked: Boolean read get_Locked write set_Locked. Remarks Sheets and styles can be locked.Style = dataEnTry sheet(2.Sheets(0) sheet. This combination allows users to edit the cells in Excel.set.1). To protect a cell against editing in Excel. Most cells are locked.Locked = True ' create an unlocked style Dim dataEnTry As XLStyle = New XLStyle(_c1xl) dataEnTry.106 · C1. // create an unlocked style . XLSheet.Save('c:\temp\Protected. // create an unlocked style dataEntry := XLStyle.xls'). // create data entry cells (unlocked) sheet[0.Style := dataEntry.Style := dataEntry. sheet.MergedCells Property Gets a XLCellRangeCollection that contains the collection of cells that are merged on the sheet.Value := "Address:".Beige. // save the book _c1xl.Locked = false. begin // start with a single locked sheet _c1xl.1].Beige. // create data entry cells (unlocked) sheet[0.BackColor = Color. [Visual Basic] Public ReadOnly Property MergedCells As XLCellRangeCollection . dataEntry.Style = dataEntry. sheet[2. sheet[1.Style := dataEntry.xls").Locked := true.Style = dataEntry. sheet[1.1]. sheet[1. end. • Delphi var sheet: XLSheet. sheet[2. See Also XLSheet Class | XLSheet Members | C1.0].Style = dataEntry.Value = "Address:".0]. sheet[2. dataEntry: XLStyle.MergedCells Property · 107 XLStyle dataEntry = new XLStyle(_c1xl).Value := "Phone #:".Create(_c1xl).1]. // save the book _c1xl. sheet := _c1xl. sheet[2.0].Clear.0].1].C1Excel Namespace XLSheet.Value := "Name:".0]. dataEntry.Value = "Name:".1].0].Sheets[0].Save(@"c:\temp\Protected. // create data entry titles sheet[0.Locked := false. sheet[1. // create data entry titles sheet[0. dataEntry.BackColor := Color.Value = "Phone #:". dataEntry.1]. See Also XLSheet Class | XLSheet Members | C1. See Also XLSheet Class | XLSheet Members | C1. [Visual Basic] Public Property Name As String [C#] public string Name {get.set.PrintSettings() pp. [Visual Basic] Public Property PrintSettings As XLPrintSettings [C#] public XLPrintSettings PrintSettings {get.set. Example The code below creates a header for the sheet and sets the orientation to landscape: • Visual Basic Dim pp As XLPrintSettings = sheet.} [Delphi] public property Name: String read get_Name write set_Name.Header = "&LLeft Header&CCenter Header&RRight Header" . the sheet names appear in the tabs below the work area.C1Excel Namespace [C#] public XLCellRangeCollection MergedCells {get. so they should be unique. Each merged range is represented by a XLCellRange object. Remarks When you open a workbook in Excel.C1Excel Namespace XLSheet.108 · C1. Remarks The collection has methods for inspecting. or clearing merged ranges in a sheet.} [Delphi] public property MergedCells: XLCellRangeCollection read get_MergedCells.PrintSettings Property Gets or sets an XLPrintSettings object that controls how the sheet is printed.} [Delphi] public property PrintSettings: XLPrintSettings read get_PrintSettings write set_PrintSettings.Name Property Gets or sets the name of the XLSheet.Landscape = True pp. adding. Sheet names can be used as indexers.C1Excel Namespace XLSheet. begin pp := sheet.Rows Property · 109 • C# XLPrintSettings pp = sheet. • See Also XLSheet Class | XLSheet Members | C1.ShowGridLines Property Gets or sets whether Excel should show the grid lines when displaying the sheet. pp.Visible Property Gets or sets the sheet's visibility. See Also XLSheet Class | XLSheet Members | C1.set.C1Excel Namespace XLSheet. [Visual Basic] Public Property Visible As Boolean .PrintSettings().XLSheet.Header = "&LLeft Header&CCenter Header&RRight Header".PrintSettings.C1Excel Namespace XLSheet. pp. Delphi var pp: XLPrintSettings. See Also XLSheet Class | XLSheet Members | C1.Rows Property Gets a reference to sheet's row collection.Landscape := true. [Visual Basic] Public Property ShowGridLines As Boolean [C#] public bool ShowGridLines {get. pp.Header := '&LLeft Header&CCenter Header&RRight Header'.} [Delphi] public property Rows: XLRowCollection read get_Rows. [Visual Basic] Public ReadOnly Property Rows As XLRowCollection [C#] public XLRowCollection Rows {get.} [Delphi] public property ShowGridLines: Boolean read get_ShowGridLines write set_ShowGridLines.C1Excel Namespace XLSheet.Landscape = true. pp. end. Clone Method Creates a copy of this sheet. For a complete list of XLSheet class members. This method is useful for applications that generate books with a large number of similar sheets. Example The code below loads a book that contains a template sheet.C1Excel Namespace Creates a copy of this sheet. [Visual Basic] Public Function Clone() As XLSheet [C#] public XLSheet Clone() [Delphi] public function Clone(): XLSheet. then saves the file with a new name.xls"). for (int month = 1.C1Excel Namespace [C#] public bool Visible {get.set. creates 12 copies of that sheet. XLSheet.Load(@"c:\temp\template.110 · C1. // create 12 copies of the template sheet XLSheet templateSheet = _c1xl. Public Methods Clone GetCell See Also XLSheet Class | C1. month <= 12. Remarks After cloning a sheet.Sheets["Template"].C1Excel Namespace XLSheet Methods The methods of the XLSheet class are listed here. or null of the cell doesn't exist. see the XLSheet Members topic.} [Delphi] public property Visible: Boolean read get_Visible write set_Visible. you must rename it and then add it to the book (duplicate names are not allowed). Return Value A new XLSheet object with the same contents and formatting as this sheet. Gets a reference to a cell at the specified coordinates. removes the template sheet. month++) { . See Also XLSheet Class | XLSheet Members | C1. // load book with template sheet _c1xl. Sheets.Name = month.0]. See Also XLSheet Class | XLSheet Members | C1. and cells as needed.Sheets.Clone(). or null of the cell doesn't exist. [Visual Basic] Public Function GetCell( _ ByVal rowIndex As Integer. _c1xl. or null if there is no cell at the specified position.Add(newSheet).ToString(). use the Sheets indexer instead.C1Excel Namespace XLSheet. colIndex: Int32 ): XLCell. columns.Remove("Template").Save(@"C:\temp\expense_report. Parameters rowIndex Index of the row. Remarks To populate new sheets.xls").XLSheet.Value = month. int colIndex ). and will never return null. Return Value A reference to the XLCell object at the specified coordinates. See Also XLSheet Class | XLSheet Members | C1. [Delphi] public function GetCell( rowIndex: Int32. The indexer will automatically create new rows. // rename clone newSheet[0.GetCell Method Gets a reference to a cell at the specified coordinates. // make changes _c1xl.GetCell Method · 111 XLSheet newSheet = templateSheet. _ ByVal colIndex As Integer _ ) As XLCell [C#] public XLCell GetCell( int rowIndex. newSheet. colIndex Index of the column. // add clone to book } // remove the template sheet and save with new name _c1xl.C1Excel Namespace . IEnumerable). then prints the sheet's name: • Visual Basic Dim book As New C1XLBook() Dim sheet As XLSheet = book. Console. • • Namespace: C1.Sheets(0) Console.C1Excel Namespace XLSheetCollection Members XLSheetCollection overview .2 (in C1. ICollection. XLSheet sheet = book.C1Excel Assembly: C1.Sheets[0]. the code below gets a reference to the first sheet on the book.XLSheetCollection [Visual Basic] Public Class XLSheetCollection Implements ICollection. IEnumerable [C#] public class XLSheetCollection : ICollection.2. end. sheet := book.C1Excel.Sheets[0]. For example. begin book := C1XLBook. Example Use the C1XLBook Sheets property to get the book's sheet collection.C1Excel. enumerating.WriteLine(sheet.Object C1.Create. adding. Remarks Provides methods and properties for counting.Name).112 · C1.WriteLine(sheet. and removing sheets from the workbook. For a list of all members of this type. see XLSheetCollection Members.WriteLine(sheet.dll) See Also XLSheetCollection Members | C1. book: C1XLBook. IEnumerable [Delphi] type XLSheetCollection = class (TObject. Delphi var sheet: XLSheet.Name).Name) C# C1XLBook book = new C1XLBook().C1Excel. System. Console.C1Excel Namespace XLSheetCollection Class Collection of XLSheet objects that represent the individual worksheets in a C1XLBook. Book Property · 113 Public Properties Book Count Item SelectedIndex Public Methods Add Clear Contains IndexOf Insert Remove RemoveAt See Also XLSheetCollection Class | C1. Creates a new XLSheet and inserts it at a specific position in the collection.XLSheetCollection. see the XLSheetCollection Members topic. Gets the number of XLSheet objects in the collection. XLSheetCollection Properties The properties of the XLSheetCollection class are listed here. Removes all items from the collection. Gets or sets the index of the sheet that is selected when the C1XLBook file is loaded into Excel. Removes an XLSheet from the collection. For a complete list of XLSheetCollection class members. Gets a reference to the C1XLBook that owns the collection.C1Excel Namespace Overloaded. Public Properties Book Count Item SelectedIndex See Also XLSheetCollection Class | C1. Overloaded.Book Property Gets a reference to the C1XLBook that owns the collection. XLSheetCollection. Gets the index of a given XLSheet in the collection. Removes the XLSheet at a specific index from the collection. . Gets the XLSheet at a given position in the collection. Overloaded. Determines whether the collection contains a specific XLSheet object. Overloaded. Gets the number of XLSheet objects in the collection. Creates a new XLSheet and appends it to the collection.C1Excel Namespace Gets a reference to the C1XLBook that owns the collection. Overloaded. Gets or sets the index of the sheet that is selected when the C1XLBook file is loaded into Excel. Gets the XLSheet at a given position in the collection. Overloaded. Overloaded. C1Excel Namespace [Visual Basic] Public ReadOnly Property Book As C1XLBook [C#] public C1XLBook Book {get.C1Excel Namespace XLSheetCollection.} [Delphi] public property Count: Int32 read get_Count. See Also XLSheetCollection Class | XLSheetCollection Members | C1. [Visual Basic] Overloads Public Default ReadOnly Property Item(Integer) As XLSheet [C#] public XLSheet this[int]{get. See Also XLSheetCollection Class | XLSheetCollection Members | C1. [Visual Basic] Overloads Public Default ReadOnly Property Item(String) As XLSheet [C#] public XLSheet this[string]{get.} [Delphi] public property Item[name: String]: XLSheet read get_Item.C1Excel Namespace XLSheetCollection. [Visual Basic] Public ReadOnly Property Count As Integer [C#] public int Count {get.Item Property Overload List Gets the XLSheet at a given position in the collection.114 · C1.C1Excel Namespace XLSheetCollection. [Visual Basic] Public Default ReadOnly Property Item( _ ByVal index As Integer _ ) As XLSheet .} [Delphi] public property Item[index: Int32]: XLSheet read get_Item.Item Property (Int32) Gets the XLSheet at a given position in the collection. See Also XLSheetCollection Class | XLSheetCollection Members | C1. Gets the XLSheet with the given name (case-insensitive).Count Property Gets the number of XLSheet objects in the collection.} [Delphi] public property Book: C1XLBook read get_Book. } [Delphi] public property SelectedIndex: Int32 read get_SelectedIndex write set_SelectedIndex.} [Delphi] public property Item[ index: Int32 ]: XLSheet read get_Item.C1Excel Namespace .Item Property (String) Gets the XLSheet with the given name (case-insensitive). See Also XLSheetCollection Class | XLSheetCollection Members | C1.Item Overload List XLSheetCollection.XLSheetCollection.Item Overload List XLSheetCollection. See Also XLSheetCollection Class | XLSheetCollection Members | C1.SelectedIndex Property Gets or sets the index of the sheet that is selected when the C1XLBook file is loaded into Excel.set.C1Excel Namespace | XLSheetCollection.SelectedIndex Property · 115 [C#] public XLSheet this[ int index ] {get. [Visual Basic] Public Default ReadOnly Property Item( _ ByVal name As String _ ) As XLSheet [C#] public XLSheet this[ string name ] {get. [Visual Basic] Public Property SelectedIndex As Integer [C#] public int SelectedIndex {get.} [Delphi] public property Item[ name: String ]: XLSheet read get_Item.C1Excel Namespace | XLSheetCollection. See Also XLSheetCollection Class | XLSheetCollection Members | C1. [Visual Basic] Overloads Public Function Add(XLSheet) As XLSheet [C#] public XLSheet Add(XLSheet). Creates a new XLSheet with a given name and appends it to the collection. overload. [Delphi] public function Add(String) : XLSheet. [Visual Basic] Overloads Public Function Add() As XLSheet [C#] public XLSheet Add(). Overloaded. Creates a new XLSheet and inserts it at a specific position in the collection. [Delphi] public function Add() : XLSheet. Overloaded. Removes all items from the collection. Overloaded.C1Excel Namespace Overloaded. XLSheetCollection. [Visual Basic] Overloads Public Function Add(String) As XLSheet [C#] public XLSheet Add(string). [Visual Basic] Overloads Public Function Add() As XLSheet .Add Method Overload List Creates a new XLSheet and appends it to the collection. [Delphi] public function Add(XLSheet) : XLSheet. Removes an XLSheet from the collection. Public Methods Add Clear Contains IndexOf Insert Remove RemoveAt See Also XLSheetCollection Class | C1. See Also XLSheetCollection Class | XLSheetCollection Members | C1. Appends an existing XLSheet to the collection. For a complete list of XLSheetCollection class members. Removes the XLSheet at a specific index from the collection.C1Excel Namespace XLSheetCollection.116 · C1. overload. overload.C1Excel Namespace XLSheetCollection Methods The methods of the XLSheetCollection class are listed here. Determines whether the collection contains a specific XLSheet object. Creates a new XLSheet and appends it to the collection.Add Method () Creates a new XLSheet and appends it to the collection. Overloaded. see the XLSheetCollection Members topic. Gets the index of a given XLSheet in the collection. Add Method · 117 [C#] public XLSheet Add() [Delphi] public function Add(): XLSheet.C1Excel Namespace | XLSheetCollection. [Visual Basic] Overloads Public Function Add( _ ByVal name As String _ ) As XLSheet [C#] public XLSheet Add( string name ).Add Overload List XLSheetCollection. See Also XLSheetCollection Class | XLSheetCollection Members | C1. Return Value A reference to the new XLSheet object. [Visual Basic] Overloads Public Function Add( _ ByVal sheet As XLSheet _ ) As XLSheet . overload.Add Overload List XLSheetCollection. See Also XLSheetCollection Class | XLSheetCollection Members | C1.XLSheetCollection.Add Method (String) Creates a new XLSheet with a given name and appends it to the collection. Parameters name The name of the new XLSheet. Return Value A reference to the new XLSheet object.C1Excel Namespace | XLSheetCollection. [Delphi] public function Add( name: String ): XLSheet.Add Method (XLSheet) Appends an existing XLSheet to the collection. overload. Parameters sheet The object to add to the collection. always the sheet parameter).118 · C1.C1Excel Namespace | XLSheetCollection. Return Value A reference to the object that was added to the collection (in this case. overload. [Delphi] public function Contains(String) : Boolean. overload.Clear Method Removes all items from the collection. [Visual Basic] Overloads Public Function Contains(String) As Boolean [C#] public bool Contains(string).C1Excel Namespace [C#] public XLSheet Add( XLSheet sheet ).C1Excel Namespace XLSheetCollection. overload. [Delphi] public function Add( sheet: XLSheet ): XLSheet.Contains Method Overload List Determines whether the collection contains an XLSheet object with a given name.Add Overload List XLSheetCollection. [Delphi] public function Contains(XLSheet) : Boolean. See Also XLSheetCollection Class | XLSheetCollection Members | C1. [Visual Basic] Overloads Public Function Contains(XLSheet) As Boolean [C#] public bool Contains(XLSheet). See Also XLSheetCollection Class | XLSheetCollection Members | C1. See Also XLSheetCollection Class | XLSheetCollection Members | C1. [Visual Basic] Public Sub Clear() [C#] public void Clear() [Delphi] public procedure Clear(). Determines whether the collection contains a specific XLSheet object.C1Excel Namespace . [Visual Basic] Overloads Public Function Contains( _ ByVal sheet As XLSheet _ ) As Boolean [C#] public bool Contains( XLSheet sheet ). overload.XLSheetCollection. [Delphi] public function Contains( sheetName: String ): Boolean.Contains Method · 119 XLSheetCollection. Parameters sheetName The name of the sheet to look for (case-insensitive). False otherwise. Parameters sheet The object to look for in the collection.Contains Method (String) Determines whether the collection contains an XLSheet object with a given name. Return Value True if the collection contains an XLSheet. overload. [Visual Basic] Overloads Public Function Contains( _ ByVal sheetName As String _ ) As Boolean [C#] public bool Contains( string sheetName ).C1Excel Namespace | XLSheetCollection.Contains Method (XLSheet) Determines whether the collection contains a specific XLSheet object. with the given sheetName. See Also XLSheetCollection Class | XLSheetCollection Members | C1.Contains Overload List XLSheetCollection. . [Delphi] public function Contains( sheet: XLSheet ): Boolean. See Also XLSheetCollection Class | XLSheetCollection Members | C1. Return Value The index of the sheet in the collection. [Visual Basic] Overloads Public Function IndexOf(String) As Integer [C#] public int IndexOf(string).C1Excel Namespace XLSheetCollection.C1Excel Namespace | XLSheetCollection. [Delphi] public function IndexOf( name: String ): Int32. overload. [Visual Basic] Overloads Public Function IndexOf(XLSheet) As Integer [C#] public int IndexOf(XLSheet).C1Excel Namespace | XLSheetCollection.Contains Overload List XLSheetCollection. or -1 if the sheet can't be found in the collection. [Visual Basic] Overloads Public Function IndexOf( _ ByVal name As String _ ) As Integer [C#] public int IndexOf( string name ).C1Excel Namespace Return Value True if the collection contains the object. overload. [Delphi] public function IndexOf(String) : Int32. overload.IndexOf Method (String) Gets the position of the sheet with the specified name in the collection. Gets the index of a given XLSheet in the collection.IndexOf Overload List .IndexOf Method Overload List Gets the position of the sheet with the specified name in the collection. See Also XLSheetCollection Class | XLSheetCollection Members | C1.120 · C1. See Also XLSheetCollection Class | XLSheetCollection Members | C1. Parameters name Name of the object to look for (case-insensitive). [Delphi] public function IndexOf(XLSheet) : Int32. False otherwise. or -1 if the object is not a member of the collection. Parameters sheet The object to look for. XLSheet) As XLSheet [C#] public XLSheet Insert(int. [Visual Basic] Overloads Public Function Insert(Integer. Return Value The index of the object in the collection. overload. overload. overload.C1Excel Namespace XLSheetCollection. [Visual Basic] Overloads Public Function IndexOf( _ ByVal sheet As XLSheet _ ) As Integer [C#] public int IndexOf( XLSheet sheet ).IndexOf Method (XLSheet) Gets the index of a given XLSheet in the collection.Insert Method Overload List Creates a new XLSheet and inserts it at a specific position in the collection. [Visual Basic] Overloads Public Function Insert(Integer) As XLSheet [C#] public XLSheet Insert(int).Insert Method (Int32) Creates a new XLSheet and inserts it at a specific position in the collection. XLSheet).Insert Method · 121 XLSheetCollection. Inserts an XLSheet object into the collection at the specified position. See Also XLSheetCollection Class | XLSheetCollection Members | C1. .C1Excel Namespace | XLSheetCollection. [Delphi] public function Insert(Int32. XLSheet) : XLSheet. [Delphi] public function IndexOf( sheet: XLSheet ): Int32. [Delphi] public function Insert(Int32) : XLSheet.XLSheetCollection.IndexOf Overload List XLSheetCollection. See Also XLSheetCollection Class | XLSheetCollection Members | C1. [Visual Basic] Overloads Public Function Insert( _ ByVal index As Integer. . [Delphi] public function Insert( index: Int32. XLSheet sheet ).122 · C1. sheet XLSheet object to add to the collection. sheet: XLSheet ): XLSheet.C1Excel Namespace [Visual Basic] Overloads Public Function Insert( _ ByVal index As Integer _ ) As XLSheet [C#] public XLSheet Insert( int index ). overload. [Delphi] public function Insert( index: Int32 ): XLSheet. XLSheet) Inserts an XLSheet object into the collection at the specified position. See Also XLSheetCollection Class | XLSheetCollection Members | C1.Insert Method (Int32. Parameters index Index where the new XLSheet will be added.C1Excel Namespace | XLSheetCollection. overload. Parameters index Position where the item will be inserted.Insert Overload List XLSheetCollection. Return Value A reference to the new XLSheet object. _ ByVal sheet As XLSheet _ ) As XLSheet [C#] public XLSheet Insert( int index. C1Excel Namespace | XLSheetCollection. overload. [Visual Basic] Overloads Public Sub Remove( _ ByVal name As String _ ) [C#] public void Remove( string name ). [Delphi] public procedure Remove(String). See Also XLSheetCollection Class | XLSheetCollection Members | C1.Insert Overload List XLSheetCollection.Remove Method (String) Removes the XLSheet with the specified name from the collection.Remove Method Overload List Removes the XLSheet with the specified name from the collection. overload.C1Excel Namespace XLSheetCollection.Remove Overload List . overload. Parameters name Name of the sheet to remove from the collection (case-insensitive). See Also XLSheetCollection Class | XLSheetCollection Members | C1. [Visual Basic] Overloads Public Sub Remove(String) [C#] public void Remove(string). [Delphi] public procedure Remove( name: String ).Remove Method · 123 Return Value A reference to the object that was added to the collection (in this case. Removes an XLSheet from the collection.XLSheetCollection.C1Excel Namespace | XLSheetCollection. [Delphi] public procedure Remove(XLSheet). [Visual Basic] Overloads Public Sub Remove(XLSheet) [C#] public void Remove(XLSheet). See Also XLSheetCollection Class | XLSheetCollection Members | C1. always the sheet parameter). RemoveAt Method Removes the XLSheet at a specific index from the collection.C1Excel Namespace . [Delphi] public procedure Remove( sheet: XLSheet ).C1Excel Namespace | XLSheetCollection. See Also XLSheetCollection Class | XLSheetCollection Members | C1.124 · C1.C1Excel Namespace XLSheetCollection. [Delphi] public procedure RemoveAt( index: Int32 ). See Also XLSheetCollection Class | XLSheetCollection Members | C1.Remove Overload List XLSheetCollection. overload. [Visual Basic] Overloads Public Sub Remove( _ ByVal sheet As XLSheet _ ) [C#] public void Remove( XLSheet sheet ). Parameters index Index of the object to remove from the collection. [Visual Basic] Public Sub RemoveAt( _ ByVal index As Integer _ ) [C#] public void RemoveAt( int index ).Remove Method (XLSheet) Removes an XLSheet from the collection. Parameters sheet The XLSheet object to remove from the collection. Object C1.C1Excel. Gets or sets the background pattern for this XLStyle. and XLCell objects through their Style property. format. For a list of all members of this type. and may be assigned to one or more XLRow. Gets or sets the line style used to draw the bottom border. and cell styles and merges the style elements defined in each one in order to determine how the cell should be displayed. see XLStyle Members. .XLStyle [Visual Basic] Public Class XLStyle Implements ICloneable [C#] public class XLStyle : ICloneable [Delphi] type XLStyle = class (TObject. Gets or sets the vertical alignment for this XLStyle. XLColumn.XLStyle Class · 125 XLStyle Class Contains style elements used to define the appearance of the cells. column. Remarks Each XLStyle object may define one or more of the following elements: font. System.2. foreground color. alignment. Excel combines the row. The precedence of the styles is: (1) cell.C1Excel.C1Excel. background color.C1Excel Namespace XLStyle Members XLStyle overview Public Constructors XLStyle Constructor Public Properties AlignHorz AlignVert BackColor BackPattern BorderBottom BorderColorBottom Gets or sets the horizontal alignment for this XLStyle. and word wrapping. text direction. When displaying a cell.2 (in C1. Every XLStyle belongs to a C1XLBook. (2) row.C1Excel Assembly: C1. Gets or sets the background color for this XLStyle. Creates a new instance of XLStyle and adds it to the specified C1XLBook. background pattern. (3) column. ICloneable).dll) See Also XLStyle Members | C1. Namespace: C1. (4) default style. Gets or sets the color used to draw the bottom border. Overloaded. Serves as a hash function suitable for use in hashing algorithms and data structures like a hash table. Gets or sets the line style used to draw the left border. Converts a Excel-style format string into a . XLStyle Constructor Creates a new instance of XLStyle and adds it to the specified C1XLBook. Gets or sets the foreground color for this XLStyle. Gets or sets which diagonal lines to display (none. Determines whether two XLStyle objects are equivalent.NET-style format string into an Excel format string. Gets or sets whether the cell should be locked for editing when the XLSheet is protected. Gets or sets the format associated with this XLStyle. . Sets the border color for this XLStyle. Gets or sets the font for this XLStyle. Gets or sets the color used to draw the right border. Gets or sets the line style used to draw the right border.C1Excel Namespace BorderColorLeft BorderColorRight BorderColorTop BorderLeft BorderRight BorderTop Diagonal DiagonalColor DiagonalStyle Font ForeColor Format Locked PatternColor Rotation WordWrap Public Methods Clone Equals FormatDotNetToXL FormatXLToDotNet GetHashCode SetBorderColor SetBorderStyle See Also XLStyle Class | C1. Gets or sets the rotation for this XLStyle. Creates a new XLStyle object that is a copy of the current instance.NET-style format string. Gets or sets the line style used to draw the diagonal lines.126 · C1. Gets or sets the color of the background pattern for this XLStyle.C1Excel Namespace Gets or sets the color used to draw the left border. Gets or sets the line style used to draw the top border. Gets or sets the color used to draw the diagonal lines. Gets or sets whether this XLStyle causes cell contents to wrap. Overriden. Sets the border style for this XLStyle. backward). Overriden. forward. Converts a . Gets or sets the color used to draw the top border. in degrees. For a complete list of XLStyle class members. Gets or sets the background color for this XLStyle. Gets or sets which diagonal lines to display (none. Gets or sets the line style used to draw the left border. overload. Gets or sets the line style used to draw the top border. Gets or sets the color used to draw the diagonal lines. Gets or sets the line style used to draw the right border. See Also XLStyle Class | XLStyle Members | C1. see the XLStyle Members topic. Parameters book Parent C1XLBook. [Delphi] public constructor Create( book: C1XLBook ). Gets or sets the color used to draw the left border.C1Excel Namespace XLStyle Properties The properties of the XLStyle class are listed here. Gets or sets the color used to draw the bottom border. Gets or sets the color used to draw the top border. Gets or sets the background pattern for this XLStyle. forward. . backward).XLStyle Properties · 127 [Visual Basic] Public Function New( _ ByVal book As C1XLBook _ ) [C#] public XLStyle( C1XLBook book ). Gets or sets the vertical alignment for this XLStyle. Gets or sets the line style used to draw the bottom border. Gets or sets the color used to draw the right border. Public Properties AlignHorz AlignVert BackColor BackPattern BorderBottom BorderColorBottom BorderColorLeft BorderColorRight BorderColorTop BorderLeft BorderRight BorderTop Diagonal DiagonalColor DiagonalStyle Gets or sets the horizontal alignment for this XLStyle. Gets or sets the line style used to draw the diagonal lines. in degrees.128 · C1.General). .C1Excel Namespace Gets or sets the font for this XLStyle.AlignHorz Property Gets or sets the horizontal alignment for this XLStyle.set. Gets or sets the format associated with this XLStyle. Gets or sets whether the cell should be locked for editing when the XLSheet is protected.Undefined to suppress this style element and use the default horizontal alignment instead ( XLAlignHorzEnum.C1Excel Namespace XLStyle.} [Delphi] public property AlignHorz: XLAlignHorzEnum read get_AlignHorz write set_AlignHorz. Gets or sets whether this XLStyle causes cell contents to wrap. [Visual Basic] Public Property AlignHorz As XLAlignHorzEnum [C#] public XLAlignHorzEnum AlignHorz {get.set.AlignVert Property Gets or sets the vertical alignment for this XLStyle. Remarks Set the AlignHorz property to XLAlignHorzEnum.C1Excel Namespace Font ForeColor Format Locked PatternColor Rotation WordWrap See Also XLStyle Class | C1. Gets or sets the foreground color for this XLStyle. XLStyle.} [Delphi] public property AlignVert: XLAlignVertEnum read get_AlignVert write set_AlignVert. Gets or sets the color of the background pattern for this XLStyle. See Also XLStyle Class | XLStyle Members | C1. [Visual Basic] Public Property AlignVert As XLAlignVertEnum [C#] public XLAlignVertEnum AlignVert {get. Gets or sets the rotation for this XLStyle. Remarks Set the BackColor property to Color. you probably won't get exactly the same colors used when the book was created. [Visual Basic] Public Property BackColor As Color [C#] public Color BackColor {get. All colors on the C1XLBook are mapped onto a palette.C1Excel Namespace XLStyle.BackColor Property · 129 Remarks Set the AlignVert property to XLAlignVertEnum. [Visual Basic] Public Property BorderBottom As XLLineStyleEnum .} [Delphi] public property BackColor: Color read get_BackColor write set_BackColor.XLStyle.} [Delphi] public property BackPattern: XLPatternEnum read get_BackPattern write set_BackPattern.set.BorderBottom Property Gets or sets the line style used to draw the bottom border. See Also XLStyle Class | XLStyle Members | C1. This means that is you assign colors to styles.Bottom). See Also XLStyle Class | XLStyle Members | C1. and then load it back. See Also XLStyle Class | XLStyle Members | C1.set.BackPattern Property Gets or sets the background pattern for this XLStyle.C1Excel Namespace XLStyle.BackColor Property Gets or sets the background color for this XLStyle.Undefined to suppress this style element and use the default horizontal alignment instead ( XLAlignVertEnum. [Visual Basic] Public Property BackPattern As XLPatternEnum [C#] public XLPatternEnum BackPattern {get.Transparent to suppress this style element and use the default background color instead (white).C1Excel Namespace XLStyle. save the book. You will get a fairly close approximation though. } [Delphi] public property BorderColorBottom: Color read get_BorderColorBottom write set_BorderColorBottom.C1Excel Namespace XLStyle. Remarks Use the SetBorderColor method to set all borders at once. [Visual Basic] Public Property BorderColorLeft As Color [C#] public Color BorderColorLeft {get.BorderColorBottom Property Gets or sets the color used to draw the bottom border. Remarks Use the SetBorderStyle method to set all borders at once.BorderColorLeft Property Gets or sets the color used to draw the left border.130 · C1. See Also XLStyle Class | XLStyle Members | C1. [Visual Basic] Public Property BorderColorBottom As Color [C#] public Color BorderColorBottom {get.C1Excel Namespace .} [Delphi] public property BorderBottom: XLLineStyleEnum read get_BorderBottom write set_BorderBottom.set.set.set.C1Excel Namespace XLStyle.C1Excel Namespace [C#] public XLLineStyleEnum BorderBottom {get. Remarks Use the SetBorderColor method to set all borders at once.} [Delphi] public property BorderColorLeft: Color read get_BorderColorLeft write set_BorderColorLeft. See Also XLStyle Class | XLStyle Members | C1. See Also XLStyle Class | XLStyle Members | C1. BorderColorRight Property Gets or sets the color used to draw the right border.} [Delphi] public property BorderColorTop: Color read get_BorderColorTop write set_BorderColorTop. Remarks Use the SetBorderColor method to set all borders at once.BorderLeft Property Gets or sets the line style used to draw the left border.XLStyle.set.set. See Also XLStyle Class | XLStyle Members | C1.} [Delphi] public property BorderLeft: XLLineStyleEnum read get_BorderLeft write set_BorderLeft. See Also XLStyle Class | XLStyle Members | C1. Remarks Use the SetBorderColor method to set all borders at once.} [Delphi] public property BorderColorRight: Color read get_BorderColorRight write set_BorderColorRight.C1Excel Namespace XLStyle.BorderColorRight Property · 131 XLStyle. [Visual Basic] Public Property BorderColorRight As Color [C#] public Color BorderColorRight {get. [Visual Basic] Public Property BorderLeft As XLLineStyleEnum [C#] public XLLineStyleEnum BorderLeft {get.set.BorderColorTop Property Gets or sets the color used to draw the top border. . [Visual Basic] Public Property BorderColorTop As Color [C#] public Color BorderColorTop {get.C1Excel Namespace XLStyle. backward).BorderTop Property Gets or sets the line style used to draw the top border.C1Excel Namespace XLStyle.BorderRight Property Gets or sets the line style used to draw the right border.} [Delphi] public property BorderRight: XLLineStyleEnum read get_BorderRight write set_BorderRight. [Visual Basic] Public Property BorderRight As XLLineStyleEnum [C#] public XLLineStyleEnum BorderRight {get. [Visual Basic] Public Property Diagonal As XLDiagonalFlags .132 · C1.} [Delphi] public property BorderTop: XLLineStyleEnum read get_BorderTop write set_BorderTop. [Visual Basic] Public Property BorderTop As XLLineStyleEnum [C#] public XLLineStyleEnum BorderTop {get. Remarks Use the SetBorderStyle method to set all borders at once. See Also XLStyle Class | XLStyle Members | C1. See Also XLStyle Class | XLStyle Members | C1.set.C1Excel Namespace Remarks Use the SetBorderStyle method to set all borders at once.set.C1Excel Namespace XLStyle. Remarks Use the SetBorderStyle method to set all borders at once. forward.Diagonal Property Gets or sets which diagonal lines to display (none. See Also XLStyle Class | XLStyle Members | C1.C1Excel Namespace XLStyle. XLStyle.C1Excel Namespace XLStyle.set.C1Excel Namespace XLStyle.Font Property Gets or sets the font for this XLStyle.} [Delphi] public property Diagonal: XLDiagonalFlags read get_Diagonal write set_Diagonal. See Also XLStyle Class | XLStyle Members | C1. [Visual Basic] Public Property DiagonalColor As Color [C#] public Color DiagonalColor {get. [Visual Basic] Public Property DiagonalStyle As XLLineStyleEnum [C#] public XLLineStyleEnum DiagonalStyle {get.set. See Also XLStyle Class | XLStyle Members | C1.} [Delphi] public property DiagonalStyle: XLLineStyleEnum read get_DiagonalStyle write set_DiagonalStyle.DiagonalColor Property · 133 [C#] public XLDiagonalFlags Diagonal {get.} .C1Excel Namespace XLStyle.set. See Also XLStyle Class | XLStyle Members | C1.DiagonalColor Property Gets or sets the color used to draw the diagonal lines.DiagonalStyle Property Gets or sets the line style used to draw the diagonal lines.} [Delphi] public property DiagonalColor: Color read get_DiagonalColor write set_DiagonalColor.set. [Visual Basic] Public Property Font As Font [C#] public Font Font {get. [Visual Basic] Public Property ForeColor As Color [C#] public Color ForeColor {get. Remarks Excel uses formats similar. You can use the FormatXLToDotNet and FormatDotNetToXL (String. See Also XLStyle Class | XLStyle Members | C1.} [Delphi] public property ForeColor: Color read get_ForeColor write set_ForeColor. This means that is you assign colors to styles.C1Excel Namespace [Delphi] public property Font: Font read get_Font write set_Font. Remarks Set the Font property to null in order to suppress this style element and use the default font instead.set.} [Delphi] public property Format: String read get_Format write set_Format.set. . and then load it back.Format Property Gets or sets the format associated with this XLStyle. you probably won't get exactly the same colors used when the book was created.NET. Remarks Set the ForeColor property to Color. See Also XLStyle Class | XLStyle Members | C1. save the book. You will get a fairly close approximation though. All colors on the C1XLBook are mapped onto a palette. [Visual Basic] Public Property Format As String [C#] public string Format {get. Type) methods to convert common Excel format strings to and from .C1Excel Namespace XLStyle.C1Excel Namespace XLStyle. but not identical to .NET format strings. The default font is determined by the book's DefaultFont property.134 · C1. Refer to the Excel documentation for details on how to create format strings.Transparent to suppress this style element and use the default foreground color instead (black).ForeColor Property Gets or sets the foreground color for this XLStyle. as explained below: Zero means no rotation. See Also XLStyle Class | XLStyle Members | C1.C1Excel Namespace XLStyle.Rotation Property Gets or sets the rotation for this XLStyle. [Visual Basic] Public Property Rotation As Integer [C#] public int Rotation {get. or 255.PatternColor Property Gets or sets the color of the background pattern for this XLStyle.C1Excel Namespace XLStyle.set. 1-90 means 1 to 90 degrees counter-clockwise (90 causes text to be displayed in the vertical direction going up the cell) .XLStyle. [Visual Basic] Public Property PatternColor As Color [C#] public Color PatternColor {get.} [Delphi] public property PatternColor: Color read get_PatternColor write set_PatternColor. Remarks This property should be set to values between 0 and 180.set.C1Excel Namespace XLStyle. [Visual Basic] Public Property Locked As Boolean [C#] public bool Locked {get. in degrees.Locked Property · 135 See Also XLStyle Class | XLStyle Members | C1.set.} [Delphi] public property Locked: Boolean read get_Locked write set_Locked.} [Delphi] public property Rotation: Int32 read get_Rotation write set_Rotation. See Also XLStyle Class | XLStyle Members | C1.Locked Property Gets or sets whether the cell should be locked for editing when the XLSheet is protected. Sets the border color for this XLStyle. See Also XLStyle Class | XLStyle Members | C1. See Also XLStyle Class | XLStyle Members | C1.WordWrap Property Gets or sets whether this XLStyle causes cell contents to wrap.NET-style format string. Remarks Cells that do not wrap will spill onto adjacent cells. For a complete list of XLStyle class members. Overriden. Overriden.C1Excel Namespace XLStyle. Serves as a hash function suitable for use in hashing algorithms and data structures like a hash table.} [Delphi] public property WordWrap: Boolean read get_WordWrap write set_WordWrap.C1Excel Namespace XLStyle Methods The methods of the XLStyle class are listed here. .set. Public Methods Clone Equals FormatDotNetToXL FormatXLToDotNet GetHashCode SetBorderColor SetBorderStyle See Also XLStyle Class | C1. and will be kept on a single line even if they contain linebreak characters. Converts a .NET-style format string into an Excel format string. see the XLStyle Members topic.C1Excel Namespace 91-180 means 1 to 90 degrees clockwise (180 causes text to be displayed in the vertical direction going down the cell) 255 causes letters are stacked top to bottom and not rotated. Determines whether two XLStyle objects are equivalent.C1Excel Namespace Creates a new XLStyle object that is a copy of the current instance.136 · C1. Sets the border style for this XLStyle. [Visual Basic] Public Property WordWrap As Boolean [C#] public bool WordWrap {get. Converts a Excel-style format string into a . Overloaded. Clone [C#] virtual public object Clone() [Delphi] public function Clone(): Object. Return Value True if the styles are equivalent. override. See Also XLStyle Class | XLStyle Members | C1. [Delphi] public function Equals( obj: Object ): Boolean. [Visual Basic] Overridable Public Function Clone() As Object Implements ICloneable.C1Excel Namespace XLStyle. virtual.Clone Return Value A new XLStyle object that is a copy of the current instance.C1Excel Namespace . False otherwise.XLStyle. Parameters obj XLStyle object to compare to the current instance. Implements ICloneable.Equals Method Determines whether two XLStyle objects are equivalent.Clone Method Creates a new XLStyle object that is a copy of the current instance.Clone Method · 137 XLStyle. See Also XLStyle Class | XLStyle Members | C1. [Visual Basic] Overrides Public Function Equals( _ ByVal obj As Object _ ) As Boolean [C#] override public bool Equals( object obj ). Return Value An Excel-style format string.C1Excel Namespace XLStyle. [Visual Basic] Overloads Public Shared Function FormatDotNetToXL(String) As String [C#] public static string FormatDotNetToXL(string). See Also XLStyle Class | XLStyle Members | C1. Type) : String. Parameters fmt .FormatDotNetToXL Overload List XLStyle.NET-style format to convert. [Visual Basic] Overloads Public Shared Function FormatDotNetToXL( _ ByVal fmt As String _ ) As String [C#] public static string FormatDotNetToXL( string fmt ). Type) As String [C#] public static string FormatDotNetToXL(string.FormatDotNetToXL Method (String) Converts a .138 · C1.NET-style format string into an Excel format string.C1Excel Namespace XLStyle. [Visual Basic] Overloads Public Shared Function FormatDotNetToXL(String. Type). See Also XLStyle Class | XLStyle Members | C1.NET-style format string into an Excel format string. overload.FormatDotNetToXL Method Overload List Converts a . [Delphi] public class function FormatDotNetToXL(String) : String. Type) Converts a . Converts a . overload. overload.NET-style format string into an Excel format string.C1Excel Namespace | XLStyle.NET-style format string into an Excel format string. [Delphi] public class function FormatDotNetToXL(String.FormatDotNetToXL Method (String. . [Delphi] public class function FormatDotNetToXL( fmt: String ): String. dataType Data type to be formatted. Parameters fmt Excel-style format to convert. [Visual Basic] Public Shared Function FormatXLToDotNet( _ ByVal fmt As String _ ) As String [C#] public static string FormatXLToDotNet( string fmt ). Return Value An Excel-style format string. Type dataType ).NET-style format to convert. .C1Excel Namespace | XLStyle. Parameters fmt . See Also XLStyle Class | XLStyle Members | C1.XLStyle.NET-style format string. [Delphi] public class function FormatDotNetToXL( fmt: String. overload.FormatXLToDotNet Method · 139 [Visual Basic] Overloads Public Shared Function FormatDotNetToXL( _ ByVal fmt As String.FormatDotNetToXL Overload List XLStyle. [Delphi] public class function FormatXLToDotNet( fmt: String ): String. dataType: Type ): String. _ ByVal dataType As Type _ ) As String [C#] public static string FormatDotNetToXL( string fmt.FormatXLToDotNet Method Converts a Excel-style format string into a . GetHashCode Method Serves as a hash function suitable for use in hashing algorithms and data structures like a hash table. [Visual Basic] Public Sub SetBorderColor( _ ByVal color As Color _ ) [C#] public void SetBorderColor( Color color ). [Visual Basic] Overrides Public Function GetHashCode() As Integer [C#] override public int GetHashCode() [Delphi] public function GetHashCode(): Int32. Parameters color Color used to draw the border.NET-style format string.SetBorderColor Method Sets the border color for this XLStyle.C1Excel Namespace XLStyle. override. [Delphi] public procedure SetBorderColor( color: Color ). See Also XLStyle Class | XLStyle Members | C1. Remarks This method applies the setting to all four borders. Return Value A hash code for the current XLStyle.C1Excel Namespace Return Value A .C1Excel Namespace XLStyle.C1Excel Namespace .140 · C1. See Also XLStyle Class | XLStyle Members | C1. See Also XLStyle Class | XLStyle Members | C1. SetBorderStyle Method · 141 XLStyle. Remarks This method applies the setting to all four borders. [Visual Basic] Public Sub SetBorderStyle( _ ByVal style As XLLineStyleEnum _ ) [C#] public void SetBorderStyle( XLLineStyleEnum style ). Parameters style Line style used to draw the border. [Delphi] public procedure SetBorderStyle( style: XLLineStyleEnum ).C1Excel Namespace .XLStyle.SetBorderStyle Method Sets the border style for this XLStyle. See Also XLStyle Class | XLStyle Members | C1. Index · 143 Index 2 2 assembly (C1.C1Excel) 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98, 99, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 118, 120, 121, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141 C1XLBook.PixelsToTwips method 42 C1XLBook.Save method 43 C1XLBook.Sheets property 40 C1XLBook.TwipsToPixels method 43 Cells 25 Center enumeration member 44, 45 CenterHorizontal property 82 CenterVertical property 82 Clear method 40, 59, 71, 98, 118 Clone method 110, 137 ColumnCount property 52 ColumnFrom property 52 Columns property 104 ColumnTo property 52 Contains method 54, 60, 71, 98, 118 Copies property 82 Count property 56, 68, 94, 114 A Add method 57, 70, 96, 116 AlignHorz property 128 AlignVert property 128 AutoScale property 81 D Dashed enumeration member 76 DefaultColumnWidth property 105 DefaultFont property 39 DefaultRowHeight property 105 Diagonal property 132 DiagonalColor property 133 DiagonalCrosshatch enumeration member 76, 77 DiagonalStripe enumeration member 76, 77 DiagonalStyle property 133 Dotted enumeration member 76 Double enumeration member 76 DraftQuality property 82 B BackColor property 129 BackPattern property 129 Backward enumeration member 75 BlackAndWhite property 81 Book property 64, 68, 91, 94, 104, 113 BorderBottom property 129 BorderColorBottom property 130 BorderColorLeft property 130 BorderColorRight property 131 BorderColorTop property 131 BorderLeft property 131 BorderRight property 132 BorderTop property 132 Bottom enumeration member 45 E Equals method 137 F Fill enumeration member 44 FitPagesAcross property 83 FitPagesDown property 83 Font property 133 Footer property 84 ForeColor property 134 Format property 134 FormatDotNetToXL method 138 FormatXLToDotNet method 139 Forward enumeration member 75 Frozen property 68, 95 C C1Excel hierarchy (C1) 36 C1Excel namespace (C1) 35 C1XLBook class 37 about C1XLBook class 37 all members 37 constructor 38 methods 40 properties 38 C1XLBook.C1XLBook constructor 38 C1XLBook.Clear method 40 C1XLBook.DefaultFont property 39 C1XLBook.KeepFormulas property 39 C1XLBook.Load method 41 G General enumeration member 44 GetCell method 111 GetHashCode method 140 144 · Index Gray06 enumeration member 76, 77 Gray12 enumeration member 76, 77 Gray25 enumeration member 76, 77 Gray50 enumeration member 76, 77 Gray75 enumeration member 76, 77 P PaperKind property 87 PatternColor property 135 PixelsToTwips method 42 PrintGridlines property 87 PrintHeaders property 88 PrintPagesInRows property 88 PrintSettings property 108 H Hair enumeration member 76 Header property 84 Height property 91 HorizontalStripe enumeration member 76, 77 Hyperlink property 47 R Remove method 61, 74, 101, 123 RemoveAt method 62, 75, 101, 124 ReverseDiagonalStripe enumeration member 76, 77 Right enumeration member 44, 45 Rotation property 135 RowCount property 53 RowFrom property 53 Rows property 109 RowTo property 53 I IndexOf method 60, 72, 98, 120 Insert method 61, 72, 99, 121 Intersects method 54 IsEmpty property 52 Item property 56, 68, 95, 114 J Justify enumeration member 44, 45 S Save method 43 ScalingFactor property 88 SelectedIndex property 115 Selection enumeration member 44, 45 SetBorderColor method 140 SetBorderStyle method 141 Sheet property 57, 64, 69, 91, 96 Sheets property 40 ShowGridLines property 109 SlantedMediumDashDotted enumeration member 76 Solid enumeration member 76, 77 StartPage property 89 Style property 48, 65, 92 Styles 25 Support ComponentOne Web Site 12 E-mail 12 peer-to-peer 13 K KeepFormulas property 39 L Landscape property 85 Left enumeration member 44, 45 Licensing 9 Load method 41 Locked property 106, 135 M MarginBottom property 85 MarginFooter property 86 MarginHeader property 86 MarginLeft property 86 MarginRight property 87 MarginTop property 87 Medium enumeration member 76 MediumDashDotDotted enumeration member 76 MediumDashDotted enumeration member 76 MediumDashed enumeration member 76 MergedCells property 107 T Thick enumeration member 76 ThickDiagonalCrosshatch enumeration member 76, 77 Thin enumeration member 76 ThinDashDotDotted enumeration member 76 ThinDashDotted enumeration member 76 ThinDiagonalCrosshatch enumeration member 76, 77 ThinDiagonalStripe enumeration member 76, 77 ThinHorizontalCrosshatch enumeration member 76, 77 ThinHorizontalStripe enumeration member 76, 77 ThinReverseDiagonalStripe enumeration member 76, 77 N Name property 108 None enumeration member 75, 76, 77 Book property 68 XLColumnCollection.Landscape property 85 XLPrintSettings.Add method 57 XLCellRangeCollection.RemoveAt method 62 XLCellRangeCollection. 77 Visible property 65.CenterHorizontal property 82 XLPrintSettings.Index · 145 ThinVerticalStripe enumeration member 76.Remove method 61 XLCellRangeCollection.Visible property 65 XLColumn. 109 W Width property 65 WordWrap property 136 X XLAlignHorzEnum enumeration 44 XLAlignVertEnum enumeration 45 XLCell class 47 about XLCell class 45 all members 47 properties 47 XLCell.Item property 56 XLCellRangeCollection.Book property 64 XLColumn.DraftQuality property 82 XLPrintSettings.IndexOf method 72 XLColumnCollection.Insert method 61 XLCellRangeCollection.Clear method 71 XLColumnCollection.Insert method 72 XLColumnCollection.RowFrom property 53 XLCellRange. 77 Top enumeration member 45 TwipsToPixels method 43 U Undefined enumeration member 44.FitPagesDown property 83 XLPrintSettings.Add method 70 XLColumnCollection.MarginHeader property 86 XLPrintSettings.Sheet property 69 XLDiagonalFlags enumeration 75 XLLineStyleEnum enumeration 76 XLPatternEnum enumeration 76 XLPrintSettings class 78 about XLPrintSettings class 78 all members 78 constructor 79 properties 80 XLPrintSettings.ColumnTo property 52 XLCellRange.RowTo property 53 XLCellRange.Sheet property 57 XLColumn class 63 about XLColumn class 62 all members 63 constructor 63 properties 64 XLColumn.Remove method 74 XLColumnCollection.Contains method 54 XLCellRange.CenterVertical property 82 XLPrintSettings.Header property 84 XLPrintSettings.AutoScale property 81 XLPrintSettings.IsEmpty property 52 XLCellRange. 92.Value property 48 XLCellRange class 49 about XLCellRange class 49 all members 49 constructor 50 methods 54 properties 51 XLCellRange.Copies property 82 XLPrintSettings.Clear method 59 XLCellRangeCollection.Frozen property 68 XLColumnCollection.RowCount property 53 XLCellRange.Width property 65 XLColumn. 45 V Value property 48 VerticalStripe enumeration member 76.Contains method 60 XLCellRangeCollection.ColumnFrom property 52 XLCellRange.Style property 65 XLColumn.Sheet property 64 XLColumn.Hyperlink property 47 XLCell.MarginLeft property 86 .Count property 68 XLColumnCollection.Count property 56 XLCellRangeCollection.BlackAndWhite property 81 XLPrintSettings.XLColumn constructor 63 XLColumnCollection class 67 about XLColumnCollection class 66 all members 67 methods 69 properties 67 XLColumnCollection.ColumnCount property 52 XLCellRange.MarginBottom property 85 XLPrintSettings.RemoveAt method 75 XLColumnCollection.MarginFooter property 86 XLPrintSettings.Item property 68 XLColumnCollection.Intersects method 54 XLCellRange.Style property 48 XLCell.Footer property 84 XLPrintSettings.XLCellRange constructor 50 XLCellRangeCollection class 55 about XLCellRangeCollection class 55 all members 55 methods 57 properties 56 XLCellRangeCollection.Contains method 71 XLColumnCollection.IndexOf method 60 XLCellRangeCollection.FitPagesAcross property 83 XLPrintSettings. Sheet property 96 XLS Files 21 XLSheet class 103 about XLSheet class 102 all members 103 methods 110 properties 103 XLSheet.Clear method 118 XLSheetCollection.Columns property 104 XLSheet.BorderColorBottom property 130 XLStyle.FormatDotNetToXL method 138 XLStyle.Name property 108 XLSheet.ScalingFactor property 88 XLPrintSettings.Remove method 101 XLRowCollection.Count property 94 XLRowCollection.DefaultColumnWidth property 105 XLSheet.Clone method 137 XLStyle.WordWrap property 136 XLStyle.StartPage property 89 XLPrintSettings.XLStyle constructor 126 .PrintSettings property 108 XLSheet.BorderBottom property 129 XLStyle.Item property 95 XLRowCollection.MarginTop property 87 XLPrintSettings.146 · Index XLPrintSettings.GetHashCode method 140 XLStyle.BorderTop property 132 XLStyle.Contains method 98 XLRowCollection.Add method 96 XLRowCollection.RemoveAt method 124 XLSheetCollection.BorderLeft property 131 XLStyle.FormatXLToDotNet method 139 XLStyle.Book property 94 XLRowCollection.MarginRight property 87 XLPrintSettings.Locked property 135 XLStyle.Font property 133 XLStyle.SetBorderStyle method 141 XLStyle.MergedCells property 107 XLSheet.Book property 113 XLSheetCollection.BorderColorLeft property 130 XLStyle.Rotation property 135 XLStyle.Contains method 118 XLSheetCollection.PrintPagesInRows property 88 XLPrintSettings.BorderColorRight property 131 XLStyle.Visible property 109 XLSheetCollection class 112 about XLSheetCollection class 112 all members 112 methods 116 properties 113 XLSheetCollection.DiagonalColor property 133 XLStyle.Book property 91 XLRow.Add method 116 XLSheetCollection.DiagonalStyle property 133 XLStyle.Count property 114 XLSheetCollection.PrintHeaders property 88 XLPrintSettings.SetBorderColor method 140 XLStyle.DefaultRowHeight property 105 XLSheet.SelectedIndex property 115 XLStyle class 125 about XLStyle class 125 all members 125 constructor 126 methods 136 properties 127 XLStyle.Remove method 123 XLSheetCollection.BackPattern property 129 XLStyle.Diagonal property 132 XLStyle.RemoveAt method 101 XLRowCollection.XLPrintSettings constructor 79 XLRow class 90 about XLRow class 89 all members 90 constructor 90 properties 90 XLRow.Insert method 99 XLRowCollection.Sheet property 91 XLRow.Equals method 137 XLStyle.ForeColor property 134 XLStyle.Insert method 121 XLSheetCollection.Frozen property 95 XLRowCollection.Book property 104 XLSheet.PatternColor property 135 XLStyle.BorderRight property 132 XLStyle.GetCell method 111 XLSheet.Format property 134 XLStyle.Item property 114 XLSheetCollection.Height property 91 XLRow.BackColor property 129 XLStyle.IndexOf method 98 XLRowCollection.Locked property 106 XLSheet.Rows property 109 XLSheet.BorderColorTop property 131 XLStyle.Visible property 92 XLRow.Style property 92 XLRow.AlignVert property 128 XLStyle.IndexOf method 120 XLSheetCollection.PaperKind property 87 XLPrintSettings.ShowGridLines property 109 XLSheet.Clone method 110 XLSheet.AlignHorz property 128 XLStyle.PrintGridlines property 87 XLPrintSettings.Clear method 98 XLRowCollection.XLRow constructor 90 XLRowCollection class 93 about XLRowCollection class 92 all members 93 methods 96 properties 94 XLRowCollection. Documents Similar To C1ExcelManual2006Skip carouselcarousel previouscarousel nextLEGO Mindstorms EULA - EnglishRSA EnVision 3.5.x Getting Started Guide 60 SeriesLicense ENUPDF Restriction Remover SoftwarecueluxSR1002 1004 Installation GuideKAM98 Manual07 Viewshed AnalysisEngraving.pdfLicenseLicenseCWXNEW2015LicenseLicenseLicense03VBA Interview Ques - 02EULA MCAfee - Master FreewareProject End 2013-14 EvaluationEULALicenseAnswer for Written AssignmentConstraintsAspnet.gaugesWwe 2k15 Ps4 Online Manual EngHelpAll Pilep6 Eppm Users GuideCountings Check Box Edit Box EtcPd Checklist Product Sales (1)Best Books About Source CodeLearning C# by Developing Games with Unity 3D Beginner's Guideby Terry NortonOracle Advanced PL/SQL Developer Professional Guideby Saurabh K. GuptaTkinter GUI Application Development HOTSHOTby Bhaskar ChaudharyMatrix Algorithms in MATLABby Ong U. RouthLearning Informatica PowerCenter 9.xby Rahul MalewarPython High Performance Programmingby Gabriele LanaroBest Books About LicenseWebsite Law: The Legal Guide for Website Owners and Bloggersby Tom JamesThe Insider's Guide to Music Licensingby Brian TarquinBusiness and Legal Forms for Illustratorsby Tad CrawfordLibrary Consortia: Practical Guide for Library Managersby Aditya Tripathi and Jawahar LalValuing and Licensing Intellectual Propertyby John P Mc Manus18 Steps for Starting Your Businessby Linda PinsonFooter MenuBack To TopAboutAbout ScribdPressOur blogJoin our team!Contact UsJoin todayInvite FriendsGiftsLegalTermsPrivacyCopyrightSupportHelp / FAQAccessibilityPurchase helpAdChoicesPublishersSocial MediaCopyright © 2018 Scribd Inc. .Browse Books.Site Directory.Site Language: English中文EspañolالعربيةPortuguês日本語DeutschFrançaisTurkceРусский языкTiếng việtJęzyk polskiBahasa indonesiaSign up to vote on this titleUsefulNot usefulYou're Reading a Free PreviewDownloadClose DialogAre you sure?This action might not be possible to undo. Are you sure you want to continue?CANCELOK