ComponentOne

Sizer for WinForms

Copyright © 1987-2015 GrapeCity, Inc. All rights reserved.

ComponentOne, a division of GrapeCity
201 South Highland Avenue, Third Floor
Pittsburgh, PA 15206 USA

Website:
Sales:
Telephone:

http://www.componentone.com
sales@componentone.com
1.800.858.2739 or 1.412.681.4343 (Pittsburgh, PA USA Office)

Trademarks
The ComponentOne product name is a trademark and ComponentOne is a registered trademark of GrapeCity, Inc.
All other trademarks used herein are the properties of their respective owners.

Warranty
ComponentOne warrants that the media on which the software is delivered is 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 media 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 the defective media by
sending it and a check for $25 (to cover postage and handling) to ComponentOne.
Except for the express warranty of the original media on which the software is delivered is 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. ComponentOne is 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.

Table of Contents
Sizer for WinForms Overview ....................................................................................................... 8
Help with WinForms Edition ..................................................................................................... 8
Migrating a C1Sizer Project to Visual Studio 2005.................................................................... 8
Key Features................................................................................................................................ 12
Design-Time Support .................................................................................................................. 13
C1Sizer Smart Tag ................................................................................................................... 13
C1SizerLight Smart Tag ........................................................................................................... 14
C1Sizer Context Menus ........................................................................................................... 15
C1Sizer Grid Editor .................................................................................................................. 16
C1Sizer Gradient Editor ........................................................................................................... 18
Using the C1SizerLight Component ............................................................................................ 20
Quick Start Tutorial ................................................................................................................. 20
Using the C1Sizer Control ........................................................................................................... 24
Tutorial 1: Set up the grid, then add the controls .................................................................. 26
Tutorial 2: Add the controls, then set up the grid .................................................................. 33
Sizer for WinForms Samples ....................................................................................................... 37
Sizer for WinForms Task-Based Help .......................................................................................... 38
Add a C1SizerLight Component to a Form in code ................................................................. 39
Position Controls on the C1Sizer Grid at Run Time ................................................................ 40
Create a Three Dimensional Border for the Rows and Columns ............................................ 42
Store Layout Information for the C1Sizer Control .................................................................. 43
API Reference.............................................................................................................................. 45
C1.Win.C1Sizer.4 Assembly .................................................................................................... 45
Namespaces ........................................................................................................................ 45
C1.Win.C1Sizer Namespace ............................................................................................ 45
Overview ..................................................................................................................... 45
Classes ......................................................................................................................... 47
Band ........................................................................................................................ 47
Overview ............................................................................................................. 48
Members ............................................................................................................. 49
Properties............................................................................................................ 50
Bounds Property ............................................................................................. 50

1

................................................................................Int32) Method ...................................................... 52 IsSplitter Property .................... 56 Insert Method ......................................................... 85 GetCellAtPoint(Int32... 89 2 ................... 60 Overview ....................................................................Index Property ..........................................................Int32) Method ................................................. 59 Count Property........................ 52 Size Property ........................... 53 BandCollection ........................................................................................................................................ 63 Corners Property ..................................................... 57 SetSizes Method..................................................... 87 GetCellBounds(Int32.........................Int32) Method..................... 65 Overview ......................Int32.................................................... 61 Members ........................................................ 66 Members ................................................................................................................................................. 60 Border . 62 Properties.............. 55 Members ........................................................ 88 GetCellBounds(Int32....................................................................................................................... 57 Remove Method .................................................................................... 82 AddControl(Control........................................................................................................... 64 Thickness Property ............................................................................................................. 86 GetCellBounds Method...................... 64 C1Sizer.................................................................................................................... 62 Color Property ........................ 51 IsFixedSize Property ............................................................................................................................................................................................................................................... 67 C1Sizer Constructor .............................. 79 AddControl Method .................................................................................................................................. 78 Methods ................................................................................................................................... 54 Overview . 58 Properties......................... 85 GetCellAtPoint(Point) Method ................ 82 AddControl(Control...................................................................................Int32..... 55 Methods .............................Int32) Method .........................................................................................................................Int32) Method ................................................................................. 84 GetCellAtPoint Method.......................................................................................................................................................................................................................Int32.....................Int32.......................................................................................................................................................................................................Int32...............................................................Int32...............................................................

................................................................ 113 Band Property ..................................... 92 ResumeLayout(Boolean) Method ....................................................................................................................................................................................... 120 C1SizerLight Constructor() ............... 99 Border Property ..................... 112 Members ........................................................................................................................................................................... 102 ImageAlignment Property .................................................................... 119 C1SizerLight Constructor(IContainer) ....................................................... 103 ImageScaling Property ........................................................................................................................................................................................... 91 ResumeLayout() Method .......................................................................................... 100 Cursor Property ................................................................................................................................................................................................................ 115 Overview ............... 100 Gradient Property ..................................... 109 SplitterMoving Event ............................................................................. 105 SplitterMoved Event ......................................................................................................................................... 93 SuspendLayout Method .............................................................................................................................................................................................. 116 Members ................................ 104 SplitterWidth Property.......................................................................... 114 X Property ................................................................. 115 C1SizerLight ....................................... 104 Events ........................................................................................................................................................................................................................................................... 110 C1SizerEventArgs ......................................................................................... 118 C1SizerLight Constructor........... 90 ResumeLayout Method........ 93 Properties..........GetControlAtCell Method .............................................................................................................................................................. 114 Y Property ........................ 121 3 ................................................................................ 112 Properties.............................................................................................................................................................................. 101 Image Property ........... 99 BackColor Property ................................ 94 AutoSizeMode Property........... 103 Padding Property ............................................................................................................................................................................................................................................................... 101 Grid Property ........................................................ 121 Methods ........................................................................ 111 Overview .............................................................................................

....................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 140 Item Property .........................................................................................................................................................................................................................................................................................................................GetAutoResize Method .................................... 125 Events .................................................................................................................... 139 Properties............................. 124 Enabled Property .......................................................................... 145 Center Property ... 134 Methods ................................................................................................ 132 Column ................................................. 126 ResizingControl Event .................................................................. 141 Overview ................ 136 Size Property ................................. 146 4 ...................................................................................................... 144 BackColor2 Property ................................................. 146 GammaCorrection Property........................................... 127 C1SizerLightEventArgs ................... 135 Properties............................................................................................................................................................................................................................................................................................................................... 138 Overview ................... 143 Properties........................................................................................................................................................................................................ 144 Blend Property ........................................................................... 132 Overview .............................................................. 141 Gradient .................................................................................................................... 122 SetAutoResize Method ...................................................... 126 ResizingFont Event ............................................................................................................ 129 Overview ..... 130 Properties....................................................................................................................................................................................... 142 Members ............................................................................. 138 Members .............................. 123 Properties....................................................................... 135 ToString Method ............................................................................................................................................. 131 Control Property ......................................................................................................................................... 129 Members .. 137 ColumnCollection .................................... 124 ResizeFonts Property ........................................................................................................................................ 133 Members ........................................................ 131 Cancel Property...............

...................................................................................................... 165 Properties........................ 153 SelectedObjects Property ....................................................................................................................... 160 Overview .................................. 147 Overview ..................................................................................................................................................................................................................................................................................................................................... 157 ToString Method .................. 163 Strings ................................................................................................................................................. 147 Grid.......................................................................... 168 ConfirmClearGrid Property ................. 162 Properties.......................................... 154 Sizer Property ............................................................................................ 150 AutoGenerate Method .................................................. 165 Members ................................................................................................................ 151 Columns Property ............... 158 Size Property ................................................................................................ 148 Members ...................................................................................................................................................................................................................................................................................................................................................................................... 156 Methods .................... 169 5 ......................................................................................................................................................................................................................... 155 Overview .................................................................................................. 150 Clear Method ..................................................................... 166 CannotInsertBand Property .............................................................................. 149 Methods ............................................................................................................................................................ 159 RowCollection .................................. 162 Item Property .................. 167 CannotRemoveBand Property .................................................................................................................................................................... 154 Row ................................................................. 168 DesignTimeMessage Property ..................................................................................... 164 Overview .... 167 Column Property ........................................................................................................................ 152 DraggingSplitter Property ................................................................................................... 158 Properties............................................................................................. 161 Members ......................................................................................................................... 153 Rows Property .................................... 151 Properties..................................................Mode Property ........................................................................................... 156 Members ..................................................................

............................. 181 Overview ......................... 188 Properties........................................................... 172 Properties................. 189 Empty Property ..................................................................................................................................................................Int32..................ResourceManager Property .............................................................. 173 BadFormat Property .................................................................................... 187 GetHashCode Method ..................................................................................................................................... 187 Equals Method ........................................................................................................................................................................................................................................................ 174 BadPosition Property ....................BlendErrors ........................................................................................................................................................................................................................................................................... 177 ImageAlignment ........ 184 Corners Constructor(Int32...................................................................................................................................................... 190 IsEmpty Property ......................................................................................................................................................................Int32.................. 191 LeftTop Property .. 192 RightTop Property .............. 174 BadPositionOrFactor Property ................... 171 Overview ................................................................................................................................... 182 Members .................................................................................................................................................................. 190 LeftBottom Property ..................... 176 GradientMode........................................................................................ 175 NonAscendingPositions Property .................................................................................. 185 Corners Constructor(Int32) ............................................................................................................................................................................................... 175 CannotParseFloats Property .............................................................................Int32) ....................... 180 Structures .................... 191 RightBottom Property ......................................................................................... 178 ImageScaling ....................................... 181 Corners .......... 170 Strings............................................... 183 Corners Constructor .............................. 176 Enumerations ...... 192 6 .... 176 AutoSizeEnum ....................................................................... 169 Row Property ..................................................................................................................................................................................................... 170 UICulture Property ...................................................................................................................................................................................................................................... 186 Methods ........................................... 172 Members ......................................................................................

.... 195 Delegates ................................. 194 Inequality Operator......... 196 C1SizerLightEventHandler..............Operators ........................................................................................................... 193 Implicit Type Conversion Operator ................................................................................................................................................................................................................................................................................ 197 7 ........ 196 C1SizerEventHandler........................................................................................................................................................................................ 193 Equality Operator ........

which includes removing any references to a previous assembly and adding a reference to the new assembly. First. there are two main steps that must be performed. Now you can resize all contained controls proportionally.Sizer for WinForms Overview Create resolution-independent applications without having to write any code with Sizer for WinForms. Open Project. The C1Sizer control allows you to define a grid made up of bands and then add controls that snap to these bands. please visit Getting Started with WinForms Edition. You can set up bands at design time and configure them to act as splitters or to keep their size constant when the control is resized. the . Open Visual Studio 2005 and select File. namespaces and creating a project with the control. To convert the project: 1. provided with Sizer for WinForms. technical support. you must convert your project to Visual Studio 2005.NET Framework (Dock and Anchor properties). When the C1Sizer control is resized. so your Windows Form retains its appearance at any resolution. must be updated in order for the project to run correctly. or licensing file. the bands are automatically recalculated. licensing. C1Sizer is a container control with a powerful grid layout manager that extends the basic layout capabilities provided by the . See Also Migrating a C1Sizer Project to Visual Studio 2005 Migrating a C1Sizer Project to Visual Studio 2005 To migrate a project using ComponentOne components to Visual Studio 2005. and contained controls move automatically to their new positions. See Also Help with WinForms Edition Migrating a C1Sizer Project to Visual Studio 2005 Help with WinForms Edition Getting Started For information on installing ComponentOne Studio WinForms Edition. The powerful C1Sizer and C1SizerLight components. make this possible. Secondly.licx file. 8 .

2. 3. 4. Select it and click Open. Locate the .sln file for the project that you wish to convert to Visual Studio 2005. 9 . Select Yes. The Visual Studio Conversion Wizard appears. create a backup before converting to create a backup of your current project and click Next. The Conversion Complete window appears. Click Finish to convert your project to Visual Studio 2005. Click Next. 5.

6. The project opens. 10 . Now you must remove references to any of the previous ComponentOne . Go to the Solution Explorer (View | Solution Explorer).C1Sizer and select Remove. and click the Show All Files button. 9. Click Close.Win. select the project. Click Show the conversion log when the wizard is closed if you want to view the conversion log. 7. 8.dlls and add references to the new ones. Expand the References node. Note: The Show All Files button does not appear in the Solution Explorer toolbar if the Solution project node is selected. right-click C1.

vb or Form. Right-click the References node and select Add Reference.licx file may not be visible in the Solution Explorer. The new . 15.10. To update the .licx file and select Delete.dll. The project must be rebuilt to create a new. Click OK to permanently delete licenses.licx. right-click the licenses. Click the Start Debugging button to compile and run the project.C1Sizer.licx file: In the Solution Explorer. The new licenses.cs file in the Solution Explorer to reopen it.Win. Locate and select C1. 16. 14. Select File | Close to close the form and then double-click the Form. 13.licx file appears in the list of 11 . 12. 11.2.licx file. Click OK to add it to the project. updated version of the .

and more. You have the flexibility to set up the grid before or after you create the child controls. You can now control the alignment and scale of the images. The graph allows you to neatly layout the controls on the form. See Also Key Features Key Features Sizer for WinForms includes the following features:     Create a Gradient Background With the easy-to-use C1Sizer Gradient Editor that is accessible from the "Edit Gradient" Smart Tag. The migration process is complete.files. Update your Form with Rounded Corners The new Border property gives you the flexibility to add rounded corners to the sizer and modify the color. 12 . you can quickly add a gradient to the sizer panel and customize the gradient settings. Flexibility when Adding Images to the Background With the new image properties you have more power and flexibility for using images as part of the background. Arrange Controls on the Form with Ease The C1Sizer control act like a piece of graph paper where each control will occupy one or more of the grid boxes on the form. thickness.

Simply add one or more C1Sizer controls to the form. smart tags. The C1Sizer control provides quick and easy access to the C1Sizer Grid Editor and common properties through its smart tag. The following sections describe how to use C1Sizer's design-time environment to configure C1Sizer's controls/components. so the form retains its appearance at any resolution. Then use the Grid Editor to set up a grid layout. You can also set the number and dimension of the grid's bands (rows and columns). the C1Sizer control includes a smart tag. See Also Design-Time Support Design-Time Support C1Sizer provides customized context menus. To access the C1Sizer Tasks menu. and which should have fixed dimensions. See Also C1Sizer Smart Tag C1SizerLight Smart Tag C1Sizer Context Menus C1Sizer Grid Editor C1Sizer Gradient Editor C1Sizer Smart Tag In Visual Studio. and add controls which will snap to the grid.  Resize all Contained Controls Proportionally The C1SizerLight component is a non-visual component that keeps track of a form's size and position When the form is resized. the C1SizerLight component resizes all contained controls proportionally. A smart tag represents a short-cut tasks menu that provides the most commonly used properties in each component/command. 13 . This will open the C1Sizer Tasks menu. click on the smart tag ( ) in the upper-right corner of the C1Sizer control. C1SizerLight can also resize the fonts on all or some of the contained controls. and also specify which bands should act as splitters. and a designer that offers rich designtime support and simplifies working with the object model. Easy-to-use Grid Editor Efficiently set up your form with the Grid Editor. and set their Dock property to fill the form.

Dock in parent container Clicking on the Dock in parent container link docks the C1Sizer control inside its parent container. which is helpful in finding the version number of C1Sizer and online resources.The C1Sizer Tasks menu operates as follows: About C1Sizer Clicking on the About item displays the About C1Sizer dialog box. Edit Grid Clicking on the Edit Grid item opens the C1Sizer Grid Editor. Auto Grid Clicking on the Auto Grid item clears all unused bands in the grid that don't have any controls attached to them. For more information about the C1Sizer Grid Editor's elements. Edit Gradient Clicking on the Edit Gradient item opens the C1Sizer Grid Editor. see C1Sizer Grid Editor. See Also C1SizerLight Smart Tag C1SizerLight Smart Tag The C1SizerLight component provides quick and easy access to the About C1Sizer dialog box through its smart tag. Clear Grid Clicking on the Clear Grid item removes the bands from the grid. see C1Sizer Gradient Editor. For more information about the C1Sizer Gradient Editor's elements. 14 .

Edit Grid Opens the C1Sizer Grid Editor. This will open the C1SizerLight Tasks menu. which is helpful in finding the version number of C1Sizer and online resources. See Also C1Sizer Context Menus C1Sizer Context Menus C1Sizer has additional commands with each context menu that Visual Studio provides for all . Edit Gradient Opens the C1Sizer Gradient Editor. click on the smart tag ( ) in the upper right corner of the C1SizerLight component.To access the C1SizerLight Tasks menu. The following table provides a brief description of the custom commands added by C1Sizer: Commands Description About Displays the About C1Sizer dialog box. Auto Grid Clears all unused bands in the grid that don't have any controls attached to them. Clear Grid Removes the bands from the grid.NET controls. C1SizerLight Context Menu 15 . C1Sizer Context Menu Right-click anywhere on the list to display the C1Sizer context menu. which is helpful in finding the version C1Sizer number of C1Sizer and online resources. The C1SizerLight Tasks menu operates as follows: About C1Sizer Clicking on the About item displays the About C1Sizer dialog box.

16 . The following table provides a brief description of the custom commands added by C1SizerLight: Commands Description About Displays the About C1Sizer dialog box. See Also C1Sizer Grid Editor C1Sizer Grid Editor C1Sizer has a Grid Editor to edit or add bands to rows and columns of the grid at design time.Right-click anywhere on the C1SizerLight component to display the C1SizerLight context menu. To access the C1Sizer Grid Editor: Open the C1Sizer Tasks menu and click on the Edit Grid item or right-click the C1Sizer control and select Edit Grid from its context menu. which is helpful in finding the version C1Sizer number of C1Sizer and online resources.

Even Makes all bands the same size. Command Buttons The following command buttons are available in both tabs: Command Description Insert Inserts a new band at the selection. 17 .Tabs C1Sizer Grid Editor consist of two important tabs: Rows and Columns. Both tabs share the same command buttons and properties. Click the Columns tab to create or modify the bands in the Columns of the grid. Clear Removes all bands. Delete Deletes the selected bands. Click the Rows tab to create or modify the bands in the Rows of the grid. Add Adds a new band to the collection.

Properties The following properties are available in both tabs: Property Description IsFixedSize Determines whether the band should keep its size constant when the control is resized. The default value is False.Auto Creates bands based on child control. IsSplitter Determines whether the band acts like a splitter (can be resized with the mouse at run time). 18 . See Also C1Sizer Gradient Editor C1Sizer Gradient Editor C1Sizer has a Gradient Editor to add gradients to the C1Sizer grid at design time. OK Updates the changes and closes the C1Sizer Grid Editor. Size Gets or sets the row height or column width in pixels. The default value is False. To access the C1Sizer Gradient Editor: Open the C1Sizer Tasks menu and click on the Edit Gradient item or right-click the C1Sizer control and select Edit Gradient from its context menu.

19 . The Gradient group consists of the following properties: Property Description C1Sizer.GammaCorrection Gets or sets whether to apply gamma correction to the background gradient.Gradient Group C1Sizer Gradient Editor consist of two important groups: Gradient and Blend. The Gradient group consist of BackColor and Gradient properties and a Preview window so you can preview the gradient updates you make to the C1Sizer control. Blend Group The Blend group enables you to choose from a stock blend and customize the blend by flipping the blend colors horizontally or vertically. GradientMode Specifies the background gradient mode.BackColor2 Gets or sets the secondary color used to build the background gradient. Gradient.Color used to paint the background.BackColor Gets or sets the Drawing. Gradient.

then add the buttons and list box on the form so it looks like the following: Now run the project and resize the form. When the form is resized. C1SizerLight resizes all contained controls proportionally.ResizingFont event work. Start by creating a Windows Form as usual (or open an existing one). If you make it smaller. it keeps track of the form's size and position.ResizeFonts property and C1SizerLight.NET project. so the form retains its appearance at any resolution. All controls on the form will be automatically resized with the form (including their fonts). open Visual Studio and create a new . 20 . parts of the controls will be clipped. See Also Quick Start Tutorial Quick Start Tutorial This Quick Start tutorial shows how the C1SizerLight component functions. It also demonstrates how the C1SizerLight. When you add it to a form. add the C1SizerLight component to the form.See Also Using the C1SizerLight Component Using the C1SizerLight Component C1SizerLight is a non-visual component. Then run the project and resize the form. To experiment with the C1SizerLight component. and simply add a C1SizerLight component to it. Using the C1SizerLight component is extremely easy. C1SizerLight can also resize the fonts on all or some of the contained controls.

Instead of making the form size fixed and giving up the resize feature. you will see an empty gray area. but there is no combination of these two properties that will prevent the controls from overlapping each other or leaving blank areas on the form. Also.If you make it bigger. C1SizerLight is a non-visual component. add a C1SizerLight component to the form. depending on your monitor's resolution. the fonts may appear very small when you enlarge the form. You could improve the controls' appearance on the form using the Dock and Align properties on the controls. so it will appear in the tray area below the form. 21 .

Set C1SizerLight.ResizeFonts to False and the fonts will not resize.ResizeFonts to False at design-time use the following steps: 22 .In some cases.You do not have to set any properties or write any code. You can do this using the C1SizerLight.ResizeFonts property. the fonts in the button controls were resized to accommodate the new size. To set the C1SizerLight. This is the default behavior provided by C1SizerLight. All contained controls will automatically resize and the form will retain its aspect: Resizing Fonts Notice that when you resized the form. just run the project again and resize the form. you may want to prevent that and keep all the original font sizes.

you need to handle the C1SizerLight.Win.Cancel = True End If End Sub To write code in C# C# Copy Code private void c1SizerLight1_ResizingFont(object sender. 2. and update the fonts on the buttons only. the following event handler will cause the component to resize fonts in button controls only: To write code in Visual Basic Visual Basic Copy Code Private Sub C1SizerLight1_ResizingFont(ByVal sender As Object.GetType() Is GetType(Button)) Then e. To do this.C1SizerLightEventArgs) Handles _ C1SizerLight1. controls that can scroll their contents do not need the font resizing feature).ResizingFont If Not (e. it would probably be a good idea to keep the font size constant for the list control on our sample form. _ ByVal e As C1. You may also want to prevent font resizing in specific controls.C1Sizer.1.ResizeFonts to False.Control. 23 .ResizingFont event and cancel it for some controls. Set the C1SizerLight. Select C1SizerLight in the Properties sheet. For example. For example. (In general.

you probably want those controls docked to the top or bottom of the form. It will take into account the fact that they are docked and will reduce the form's client area accordingly.C1. you will notice that the ListBox control retains the original font when the form is resized. and C1SizerLight should not change their dimensions. MDI Forms C1SizerLight also works with MDI child forms. } If you run the project again.Control is Button)) e. so all non-docked controls will still be resized correctly. just like any regular form.C1SizerLightEventArgs e) { if (!(e.NET framework.Cancel = true. Simply add a C1SizerLight component to each child form and they will be resized proportionally. This makes it easy to use C1SizerLight and still takes advantage of the layout capabilities built into the .NET framework.NET framework (Dock and Anchor properties). The C1Sizer control 24 .C1Sizer.Win. For example. That is why C1SizerLight will not resize any docked controls. Docked and Nested Controls Although C1SizerLight provides easy-to-use power. if you add a ToolBar or StatusBar control to the form. See Also Using the C1Sizer Control Using the C1Sizer Control C1Sizer is a container control with a powerful grid layout manager that extends the basic layout capabilities provided by the . you may still want to use the native layout capabilities in the .

then set up the grid. setting up the splitters. then add controls that snap to these bands. You can set up bands at design time and configure them to act as splitters. The distribution CD contains more sophisticated samples that can be used as a reference. Each component will occupy one or more of the little boxes on the paper.allows you to define a grid made up of bands. There are two basic approaches to using the C1Sizer control in your projects: You can set up the grid before or after you create the child controls. and contained controls move automatically to their new positions. 25 . adding labels and data entry controls to the grid. then add the controls or how to set up the grid after you create the controls. where you can merge adjacent cells. The tutorials walk you through the creation of several simple projects. The following table lists the controls that require an additional property other than the Band. Think of C1Sizer as a piece of graph paper. Otherwise the height is set automatically based on the Font. ListBox The ListBox control allows you to set its height (exactly) only if IntegralHeight = False. ComboBox The ComboBox control allows you to set its height only if DrawMode = OwnerDraw. which works in a similar way. and creating fix-sized bands. or to keep their size constant when the control is resized. cleaning up unused bands. see Tutorial 1: Set up the grid. Tutorial This tutorial also provides an introduction to the typical usage of the C1Sizer control. This is similar to tables in word processors such as Microsoft Word. When the C1Sizer control is resized. Here is a brief overview of the tutorials that follow: Name Description Tutorial This tutorial provides a thorough introduction to the primary features of the C1Sizer 1 control. The next section includes two tutorials that that illustrate some of the main features in the C1Sizer control. It shows how to set up the grid by inserting columns and rows. and to Java's Grid Bag Layout. describing each step in detail.Bounds property: Control Property Setting TextBox The TextBox control allows you to set its height only if MultiLine = True. For more information how to set up the grid before you create the child controls. the bands are automatically recalculated. see Tutorial 2: Add the controls.

This tutorial demonstrates the following C1Sizer features:      Inserting/deleting rows and columns Arranging controls on the grid Settingthe C1Sizer.SplitterWidth and C1Sizer. At this point.IsFixedSize and Band. 2. right-click the C1Sizer control and select the Edit Grid option from the menu. so it will display a message with brief instructions on how to use the control. the C1Sizer does not have a grid layout set up yet. or any child controls.Fill so it takes up the whole form. 26 . then add the controls Tutorial 2: Add the controls.IsSplitter properties To set up the grid for C1Sizer. Open Visual Studio and create a new project.2 It shows how to add the controls and then set up the grid.BorderWidth properties Applying AutoGrid to clean up unused bands Setting the Band. then add a C1Sizer control to the form and set its Dock property to DockStyle. then add the controls In this tutorial you'll learn how to use elements and properties in the C1Sizer Grid Editor to set up a grid. but this can be ignored for now. then set up the grid Tutorial 1: Set up the grid. Now. See Also Tutorial 1: Set up the grid. complete the following steps: 1. This will bring up the C1Sizer Grid Editor dialog box so you can set up the grid layout.

This is what the control will look like at design time: The grid is displayed at design time as a series of indented rectangles. Position the editor next to the grid so you can see the effect of the changes on the control. click the Columns tab and click Insert again until the grid has eight columns. Then. and add some controls to the form. Click OK to dismiss the editor.The C1Sizer Grid Editor appears like the following: 3. click the Insert button until the grid has eight rows. Notice how the controls snap to 27 . Next.

Select the cursor over the second column and drag it to the left so there is enough space for the labels. and arrange them so the form looks like the following: Note: Remember to set the MultiLine property of the textbox controls to True. You can resize any control and make it span any number of rows and columns. The following picture illustrates this effect: 28 . To follow the tutorial.the grid layout. add eight text boxes and eight label controls. then select the cursor over each row and drag it upward to make the height of each row smaller. when you place a text box control on the form it automatically expands to three columns. Also. 5. 4. or they will not resize vertically.

BorderWidth properties to achieve the effect you want. Most of these bands are being used (controls are attached to them). right click the C1Sizer control and select the AutoGrid option from the menu. Change each label's AutoSize property to False. change the C1Sizer. Cleaning up the grid Right now the grid has eight rows and eight columns. the text boxes and labels are automatically resized. The labels will appear like the following: If you think the controls are too close to each other or too far apart. but not all. If you run the project now. This will clear any bands that have no controls attached to them. To clean up the layout and get rid of unused bands. you will see that when you resize the form.6. 29 .SplitterWidth and C1Sizer. then change each label's TextAlign property to TopRight.

Select the Columns tab and click on the Delete button and click OK. The C1Sizer Grid Editor appears. Column 0. The C1Sizer grid appears like the following image at design time. from the C1Sizer Grid Editor. 30 .The C1Sizer appears like the following: Deleting columns and rows To remove the first column. right-click the C1Sizer control and select the Edit Grid option from the menu.

you would bring up the grid editor. select the first column and set the Band. if you wanted to allow users to control the size of the label area on the left.Setting up a splitter Each band (row or column) on the grid can be configured to act as a splitter. 31 . For example. as shown below: Note: A splitter can also be added by right-clicking the band and selecting Splitter from the context menu.IsSplitter property to True.

select the first six rows and set the Band. This indicates that those rows will not be resized with the form (the last two will). You can designate certain bands as fixed size.IsFixedSize property to True. To do this. we might want to allow only the bottom text box to be resized vertically.Notice the dark gray bar to the right of the first column. bring up the grid editor. Setting up a fixed-size band When the control is resized. Note: A fixed-sized band can also be configured by right-clicking the band and selecting Fixed Size from the context menu. the grid layout is adjusted to keep the proportion between the bands. and they will not be resized. The C1Sizer appears with red markers on the first six rows. This indicates that the user will be able to drag that splitter at run time. and keep the height of all others constant. For example. Click the OK button. automatically resizing the labels and text boxes on the first two columns of the grid. 32 .

Forget about the grid initially. (Of course. 33 . when you are done. The following tutorial provides more detail about adding controls to the form and setting up the C1Sizer grid. You may prefer to work the other way around. Then.Run the program and observe the following: Use the splitter to adjust the size of the labels and text boxes. and design your form the normal way. then resize the form and notice how the top text boxes retain their height. then set up the grid In the previous tutorial. See Also Tutorial 2: Add the controls. we started with the grid and then added controls. let C1Sizer create the grid for you automatically. then set up the grid Tutorial 2: Add the controls. This concludes Tutorial 1.

once the grid is created you may still modify it with the design time commands we used earlier
to tweak the grid's appearance and behavior.)
1.
2.

Open Visual Studio and create a new project, then add a C1Sizer control to the form
and set its Dock property to DockStyle.Fill so it takes up the whole form.
Now add the following controls so the form looks like a FileOpen dialog box:
o 3 Labels
o 2 ComboBoxes
o 1 TextBox
o 7 Buttons
o 1 ListBox

You can use all the layout commands available in Visual Studio to set up this new form.
There is nothing new so far.
3.

4.

Next, change the C1Sizer.SplitterWidth property on the C1Sizer control to a small value,
one or two pixels. This is recommended because the form has some buttons that are
very close together, and we want them to stay that way when we create the grid.
To create the grid, right-click the C1Sizer control and select the AutoGrid option from
the context menu. The control will create a grid based on the position of the child
controls. The grid will look like this:

34

5.

6.

If you run the project now, you will see that when you resize the form, the contained
controls are resized proportionally.
In this case, however, you probably do not want the buttons and text boxes stretched
vertically, only the list box. In this case, bring up the grid editor, select all rows except
the one that contains the ListBox, and set the Band.IsFixedSize property to True, as
shown below (note the fixed rows are highlighted in red in the designer):

Select OK.
The designer highlights the fixed rows in red.

35

Run the program and observe the following:
Resize the form to see how the controls snap to the grid and adjust the layout automatically.

See Also
Sizer for WinForms Samples

36

Sizer for WinForms Samples Please be advised that this ComponentOne software tool is accompanied by various sample projects and/or demos which may make use of other development tools included with ComponentOne Studio. This sample uses the C1Sizer control. This sample uses the C1Sizer control. CustomSplitters Use the OnPaint event to customize the appearance of the splitter bars. FakeOutlook Create a user interface that looks like OutlookExpress. 37 . This sample uses the C1Sizer control. This sample uses the C1Sizer control. FakeStudio Create a user interface that looks like Visual Studio. This sample uses the C1Sizer control. This sample uses the C1Sizer control. Please refer to the pre-installed product samples through the following path: Documents\ComponentOne Samples\WinForms The following examples are included for the C1Sizer control: Visual Basic Samples C1Sizer includes the following Visual Basic samples: Sample Description SizerTutorial1 Demonstrates how to set up the grid and add controls. C# Samples C1Sizer includes the following C# samples: Sample Description AddControls Shows how to add child controls to a C1Sizer using code. SizerTutorial2 Demonstrates how to add controls and set up the grid.

FindControl Shows how to determine which control is at a given grid cell. RowHeaders Demonstrates how to combine the . If you are a novice to the C1Sizer for .NET 2. This sample uses the C1Sizer control. This sample uses the C1SizerLight component.FindCell Shows how to determine which cell is at a given point.NET Dock property and panel controls to provide areas with headers. SizerDesigner Shows how to display the C1Sizer grid and implement the drag-and-drop operations between grid cells. See Also Sizer for WinForms Task-Based Help Sizer for WinForms Task-Based Help The task-based help section assumes that you are familiar with programming in the Visual Studio environment. and know how to use the C1Sizer and C1SizerLight controls/components in general. This sample uses the C1Sizer control. This sample uses the C1Sizer control. This sample uses the C1SizerLight component.NET product.NET project. Light_Runtime Control the C1SizerLight at run time. see Creating a . For additional information on this topic. Light_Toolbar Automatically resize controls with a wrapping toolbar. Each task-based help topic also assumes that you have created a new . Each topic provides a solution for specific tasks using the Sizer for . This sample uses the C1Sizer control. 38 . Light_MDI Use the C1SizerLight with MDI forms. The samples shows how the C1SizerLight component works when the form has a wrapping toolbar docked to the top. This sample uses the C1SizerLight component.NET product. please see Using the C1Sizer Control first.0 Project. Light_Nested Use C1SizerLight in forms with docked and nested controls. This sample uses the C1SizerLight component.

C1SizerLight szl = new C1SizerLight(components). use the following code: To write code in Visual Basic Visual Basic Copy Code 39 . szl.components == null) this.components = New System. true). True) To write code in C# C# Copy Code if (this.Container().ComponentModel. use the following code: To write code in Visual Basic Visual Basic Copy Code If Me.components Is Nothing Then Me.SetAutoResize(this.ComponentModel.See Also Add a C1SizerLight Component to a Form in code Position Controls on the C1Sizer Grid at Run Time Create a Three Dimensional Border for the Rows and Columns Store Layout Information for the C1Sizer Control Add a C1SizerLight Component to a Form in code To programmatically add a C1SizerLight component to a form.SetAutoResize(Me.components = new System.Container End If Dim szl As C1SizerLight = New C1SizerLight(components) szl. To programmatically create a generic form start-up procedure which every form will call.

1. simply move the control to the area where you want it to be located. 3. In the C1Sizer Grid Editor add three rows and three columns and then click OK. Right-click on the C1Sizer control and select Edit Grid. To use the Band. szl.SetAutoResize(f. True) Next To write code in C# C# Copy Code Container c = new System. use the following code: To write code in Visual Basic Visual Basic Copy Code Private Sub Form1_Load(ByVal sender As Object.SetAutoResize(f. The control can be positioned over a single grid cell or it may span multiple cells. Add the C1Sizer control to your form.Bounds property to move the control. foreach (Form f in myFormList) { C1SizerLight szl = new C1SizerLight(c). true). and will automatically resize the control when the form is resized. 2. and the Control.Bounds property to determine the position of a grid cell.Container().ComponentModel. ByVal e As System.EventArgs) 40 . The C1Sizer will snap the control to the nearest position on the grid.ComponentModel. } See Also Position Controls on the C1Sizer Grid at Run Time Position Controls on the C1Sizer Grid at Run Time To position controls on the C1Sizer grid at run time.Container For Each f As Form In myFormList Dim szl As C1SizerLight = New C1SizerLight(c) szl.Dim c As Container = New System.

GetCellRectangle(2. c1Sizer1.Grid.Add(b2).Visible = True b2.Bounds = rc End Sub Private Function GetCellRectangle(ByVal row As Integer.1)-(2. c1Sizer1. GetCellRectangle(2. b2. // Create a button and position it over cell range (1.Dim b1 As Button = New Button c1Sizer1.2)). c1Sizer1. int col) { return Rectangle.1).Add(b1) b1. 0) Dim rc As Rectangle = GetCellRectangle(1.0) Button b1 = new Button().Rows(row). System.1)-(2.0).EventArgs e) { // Create a button and position it over cell (0.Visible = True b1. ByVal col As Integer) As Rectangle Return Rectangle.Bounds = GetCellRectangle(0. rc = Rectangle. b2.Controls.Visible = true.Controls. // Calculate position of range (1.2) Button b2 = new Button().Union(rc.Bounds.Intersect( 41 .Add(b1).Controls.Bounds = rc. 2)) Dim b2 As Button = New Button c1Sizer1.Controls. b1. } private Rectangle GetCellRectangle(int row.Intersect(c1Sizer1.Bounds = GetCellRectangle(0.Visible = true.Columns(col). 1) rc = Rectangle.Grid.2) Rectangle rc = GetCellRectangle(1.Add(b2) b2.Union(rc. b1.Bounds) End Function To write code in C# C# Copy Code private void Form1_Load(object sender.

c1Sizer1.DrawBorder3D(e.Rows[row]. ByVal e As PaintEventArgs) For Each row As Band In Me.Bounds For Each col As Band In Me. for example two button controls. Border3DStyle.Grid.Graphics.Grid. c1Sizer1.Paint event to repaint the control's rows and columns and the DrawBorder3D method to draw an etched three dimensional border around the rows and columns of the C1Sizer control: 1. } See Also Create a Three Dimensional Border for the Rows and Columns Create a Three Dimensional Border for the Rows and Columns The following steps show you how to create a styled border for the rows and columns of the C1Sizer control by using the C1Sizer.Columns[col].Intersect(rcrow. 3. Add some controls to C1Sizer's panel.Bounds). Right-click the panel and select Auto Grid to create and activate the grid layout.Grid.Bounds.Etched) Next Next End Sub To write code in C# C# Copy Code 42 . 4.Bounds Dim rccel As Rectangle = Rectangle. 2. rccel. Add the C1Sizer control to your form and set its Dock property to DockStyle. rccol) ControlPaint.c1Sizer1.Fill so it takes up the whole form.c1Sizer1.Grid.Rows Dim rcrow As Rectangle = row. Add the following code to the C1Sizer1_Paint event to repaint its rows and columns with a three dimensional border style: To write code in Visual Basic Visual Basic Copy Code Private Sub C1Sizer1_Paint(ByVal sender As Object.Columns Dim rccol As Rectangle = col.

EventArgs) _gridDefinition = C1Sizer1. Rectangle rccel = Rectangle.Graphics. foreach (Band col in this. This example assumes that you have imported the C1. use the GridDefinition property that gets or sets a string containing the grid information.Columns) { Rectangle rccol = col.Etched).private void c1Sizer1_Paint(object sender.Rows) { Rectangle rcrow = row.c1Sizer1. use the following code: To write code in Visual Basic Visual Basic Copy Code Private _gridDefinition As String Private _ctlPositions As ArrayList Private Sub btnSaveGrid_Click(ByVal sender As Object. but can be used as any other property.Bounds.Grid. This property is non-browsable. rccol). Border3DStyle.Win.c1Sizer1.Collections namespaces to your source code.Grid.Intersect(rcrow.DrawBorder3D(e.GridDefinition _ctlPositions = New ArrayList 43 .C1Sizer and System. To implement two buttons that save and restore the grid definition and control positions. PaintEventArgs e) { // Paint sizer grid foreach (Band row in this. } } } See Also Store Layout Information for the C1Sizer Control Store Layout Information for the C1Sizer Control To store layout information for the C1Sizer control. ControlPaint. rccel. ByVal e As System.Bounds.

// Save control positions _ctlPositions = new ArrayList().EventArgs e) { if (_gridDefinition != null) { // Restore grid definition c1Sizer1.GridDefinition = _gridDefinition.Math.Add(ctl. i < c1Sizer1.i-1) End While End If End Sub To write code in C# C# Copy Code string _gridDefinition.EventArgs e) { // Save grid definition _gridDefinition = c1Sizer1.GridDefinition.Bounds = CType(_ctlPositions(i).Add(ctl.Count.Controls) { _ctlPositions.Bounds).Count c1Sizer1.Min(System.Controls _ctlPositions.Increment(i).Controls. System. private void btnSaveGrid_Click(object sender. i++) 44 .Controls. } } private void btnRestoreGrid_Click(object sender.Controls(i).Bounds) Next End Sub Private Sub btnRestoreGrid_Click(ByVal sender As Object. ArrayList _ctlPositions. // Restore control positions for (int i = 0.Threading.GridDefinition = _gridDefinition Dim i As Integer = 0 While i < c1Sizer1.EventArgs) If Not (_gridDefinition Is Nothing) Then c1Sizer1.For Each ctl As Control In C1Sizer1.Interlocked. foreach (Control ctl in c1Sizer1. ByVal e As System. Rectangle) System. System.

Border Class that implements rounded borders and exposes properties that control the appearance of the border. BandCollection Abstract class that serves as a base for the RowCollection and ColumnCollection classes. } } } API Reference The following topics contain the API reference for Sizer for WinForms. C1Sizer A container control with a powerful grid layout manager that extends the basic layout capabilities provided by the .Win.C1Sizer.C1Sizer.Win.C1Sizer Namespace Overview Classes Class Description Band Abstract class that serves as a base for the Row and Column classes. See Also C1.{ c1Sizer1.Bounds = (Rectangle)_ctlPositions[i].Controls[i].4 Assembly C1.4 Assembly Namespaces C1.Win.NET 45 .

C1SizerLight Component that resizes all controls on a form when the form is resized.SplitterMoving and C1Sizer. C1SizerEventArgs Provides data for the C1Sizer. Strings Static class containing UI strings. Grid Summary description for Grid. C1SizerLightEventArgs Provides data for the C1SizerLight. Delegates Delegate Description 46 . ColumnCollection Collection of Column objects. Row Represents a row in the Sizer grid.ResizingFont event of a C1SizerLight component.framework (Dock and Anchor properties).SplitterMoved events of a C1Sizer control. Strings.BlendErrors Structures Structure Description Corners Represents corners associated with a user interface (UI) element. RowCollection Collection of Row objects. Column Represents a column in the Sizer grid. Gradient Class that implements gradient backgrounds and exposes properties that control the appearance of the gradient.

C1Sizer. GradientMode Specifies the background gradient mode.SplitterMoving and C1Sizer. C1SizerLightEventHandler Represents the method that will handle the C1SizerLight. Enumerations Enumeration Description AutoSizeEnum Represents the possible sizing modes.ResizingFont and C1SizerLight.ResizingControl events of a C1SizerLight component.4 Assembly Classes Band Abstract class that serves as a base for the Row and Column classes. See Also Reference C1. ImageAlignment Specifies the image alignment.C1SizerEventHandler Represents the methods that will handle the C1Sizer. ImageScaling Specifies the image scaling.Win.SplitterMoved events of a C1Sizer control. Object Model Syntax Visual Basic (Declaration) Public MustInherit Class Band 47 .

Band C1. Windows Server 2008 R2 (Server Core supported with SP1 or later).C1Sizer. Windows Server 2008 (Server Core not supported).C1Sizer. Windows Vista SP1 or later.Win.C1Sizer.Object C1.Column C1.Row Requirements Target Platforms: Windows 7.C1Sizer Namespace Overview Abstract class that serves as a base for the Row and Column classes.Band 48 .Win.Win.Win. Object Model Syntax Visual Basic (Declaration) Public MustInherit Class Band C# public abstract class Band Inheritance Hierarchy System. Windows Server 2003 SP2 See Also Reference Band Members C1.C# public abstract class Band Inheritance Hierarchy System.Win. Windows XP SP3.Object C1.C1Sizer.

Win. Windows Server 2008 R2 (Server Core supported with SP1 or later).Win.C1Sizer Namespace Members Properties The following tables list the members exposed by Band. Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference Band Members C1.Column C1.C1. Public Properties Name Description Bounds Gets a System. IsSplitter Determines whether the band acts like a splitter (can be resized with the mouse at run time). Windows Vista SP1 or later.C1Sizer. Index Gets the index of the Band in the owner collection.C1Sizer. Size Gets or sets the size of this Band object.Rectangle that represents the size and location of the band within the parent C1Sizer control. IsFixedSize Determines whether the Band should retain its size when the control is resized. Windows XP SP3.Win.Drawing.Row Requirements Target Platforms: Windows 7. Top See Also Reference 49 .

Rectangle that represents the size and location of the band within the parent C1Sizer control. IsFixedSize Determines whether the Band should retain its size when the control is resized.Win.Rectangle that represents the size and location of the band within the parent C1Sizer control.Drawing.C1Sizer Namespace Bounds Property Gets a System. Size Gets or sets the size of this Band object.Win. IsSplitter Determines whether the band acts like a splitter (can be resized with the mouse at run time). Public Properties Name Description Bounds Gets a System. Syntax Visual Basic (Declaration) 50 .Band Class C1. Index Gets the index of the Band in the owner collection. see Band members. Top See Also Reference Band Class C1.Drawing.C1Sizer Namespace Properties %%scrap%% " --> For a list of all members of this type.

Bounds = bounds.Rows[1]. Windows Server 2008 R2 (Server Core supported with SP1 or later). Requirements Target Platforms: Windows 7. Windows Vista SP1 or later. For example.} Requirements Target Platforms: Windows 7. Windows XP SP3. Syntax Visual Basic (Declaration) Public ReadOnly Property Index As Integer C# public int Index {get. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later.Public ReadOnly Property Bounds As Rectangle C# public Rectangle Bounds {get.Bounds). Windows Server 2008 (Server Core not supported). the code below moves a button control into cell 1. g. button1.Intersect(g.1 of the layout grid: Rectangle bounds = Rectangle. Windows Server 2008 (Server Core not supported). Windows XP SP3.Columns[1].} Remarks You can use the Bounds property to determine the position of specific grid cells.Bounds. Windows Server 2003 SP2 See Also Reference 51 . Windows Server 2003 SP2 See Also Reference Band Class Band Members Index Property Gets the index of the Band in the owner collection.

Windows Server 2003 SP2 See Also Reference Band Class Band Members IsSplitter Property Determines whether the band acts like a splitter (can be resized with the mouse at run time). For example. In these cases. It does not prevent the user from resizing the band with the mouse if the IsSplitter property is set to true.} Remarks When the control is resized. Windows XP SP3. Windows Vista SP1 or later. you may have a row that contains constant-size headings. you may want to keep the size of a band constant. Windows Server 2008 (Server Core not supported). Requirements Target Platforms: Windows 7.Band Class Band Members IsFixedSize Property Determines whether the Band should retain its size when the control is resized. this is done by scaling every band and keeping their proportion constant. 52 . In some cases. however. and let the other bands shrink or expand to accommodate the new control dimensions. Normally. set. The IsFixedSize property prevents the control from resizing the band when the control is resized. it updates the layout grid so it always fills the control's client area. Syntax Visual Basic (Declaration) Public Property IsFixedSize As Boolean C# public bool IsFixedSize {get. Windows Server 2008 R2 (Server Core supported with SP1 or later). and should not be resized with the control. set the IsFixedSize property to true and the band will not be resized when the control dimensions change.

the size represents the row height in pixels. set.} Remarks The IsSplitter property controls the splitter bar below each row and to the right of each column. Windows Server 2003 SP2 See Also Reference Band Class Band Members Size Property Gets or sets the size of this Band object. Requirements Target Platforms: Windows 7. IsSplitter has no effect on the last band in a collection. Windows Server 2008 (Server Core not supported). Syntax Visual Basic (Declaration) Public MustOverride Property Size As Integer C# public abstract int Size {get.Syntax Visual Basic (Declaration) Public Property IsSplitter As Boolean C# public bool IsSplitter {get. Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later). set. because the last band always ends at the edge of the control and thus cannot be resized with the mouse. Windows Vista SP1 or later. If the Band is a Column object. 53 .} Remarks If the Band is a Row object. the size represents the column width in pixels.

Windows XP SP3.RowCollection Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 (Server Core not supported).Requirements Target Platforms: Windows 7. Object Model Syntax Visual Basic (Declaration) Public MustInherit Class BandCollection C# public abstract class BandCollection Inheritance Hierarchy System. Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later).Win.C1Sizer.Object C1. Windows Vista SP1 or later. Windows Server 2003 SP2 See Also Reference Band Class Band Members BandCollection Abstract class that serves as a base for the RowCollection and ColumnCollection classes. Windows Server 2003 SP2 See Also Reference 54 . Windows XP SP3.ColumnCollection C1.C1Sizer.Win.Win.C1Sizer.BandCollection C1.

C1Sizer Namespace Overview Abstract class that serves as a base for the RowCollection and ColumnCollection classes. Windows Vista SP1 or later.Win.BandCollection Members C1.RowCollection Requirements Target Platforms: Windows 7. Windows Server 2008 R2 (Server Core supported with SP1 or later).C1Sizer. Windows XP SP3.Win.Win.ColumnCollection C1. Windows Server 2008 (Server Core not supported).C1Sizer.Object C1.C1Sizer Namespace Members Properties Methods The following tables list the members exposed by BandCollection. Public Properties 55 .Win. Windows Server 2003 SP2 See Also Reference BandCollection Members C1.C1Sizer.BandCollection C1.Win. Object Model Syntax Visual Basic (Declaration) Public MustInherit Class BandCollection C# public abstract class BandCollection Inheritance Hierarchy System.

Top Public Methods Name Description Insert Inserts a new Band at a specified position in the collection.Name Description Count Gets or sets the number of bands in the collection. Top See Also Reference BandCollection Class C1. see BandCollection members.C1Sizer Namespace Methods %%scrap%% " --> For a list of all members of this type. Remove Removes a Band from the collection. Top 56 . Public Methods Name Description Insert Inserts a new Band at a specified position in the collection. SetSizes Sets the size of multiple bands in the collection. SetSizes Sets the size of multiple bands in the collection.Win. Remove Removes a Band from the collection.

See Also Reference BandCollection Class C1. Windows Vista SP1 or later. Requirements Target Platforms: Windows 7.C1Sizer Namespace Insert Method Position where the new band will be inserted. Inserts a new Band at a specified position in the collection. Syntax Visual Basic (Declaration) Public Sub Insert( _ ByVal index As Integer _ ) C# public void Insert( int index ) Parameters index Position where the new band will be inserted. Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference BandCollection Class BandCollection Members Remove Method Index of the band that will be removed from the collection.Win. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows XP SP3. 57 .

Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Sets the size of multiple bands in the collection. Windows XP SP3.Removes a Band from the collection. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2003 SP2 See Also Reference BandCollection Class BandCollection Members SetSizes Method A vector containing the new sizes for each band in the collection. Syntax Visual Basic (Declaration) Public Sub Remove( _ ByVal index As Integer _ ) C# public void Remove( int index ) Parameters index Index of the band that will be removed from the collection. Syntax Visual Basic (Declaration) Public Sub SetSizes( _ ByVal sizes() As Integer _ ) 58 . Windows Vista SP1 or later.

However. this will cause other bands to resize immediately. so the collection always fills the client area of the C1Sizer control. Windows Vista SP1 or later. Windows Server 2008 (Server Core not supported). Any negative dimensions in the sizes array will be ignored. and the corresponding bands will retain their current dimension.Size property. This method allows you to set the size of multiple bands simultaneously.C# public void SetSizes( int[] sizes ) Parameters sizes A vector containing the new sizes for each band in the collection. with a single call. Remarks You can set the size of a Band object by setting its Band. Requirements Target Platforms: Windows 7. Windows Server 2008 R2 (Server Core supported with SP1 or later). Public Properties Name Description 59 . Windows XP SP3. see BandCollection members. Windows Server 2003 SP2 See Also Reference BandCollection Class BandCollection Members Properties %%scrap%% " --> For a list of all members of this type.

C1Sizer Namespace Count Property Gets or sets the number of bands in the collection.Count Gets or sets the number of bands in the collection. Windows XP SP3. Windows Server 2008 (Server Core not supported). Syntax Visual Basic (Declaration) Public Property Count As Integer C# public int Count {get. set. Windows Vista SP1 or later. Windows Server 2003 SP2 See Also Reference BandCollection Class BandCollection Members Border Class that implements rounded borders and exposes properties that control the appearance of the border.} Requirements Target Platforms: Windows 7. Object Model Syntax 60 . Windows Server 2008 R2 (Server Core supported with SP1 or later). Top See Also Reference BandCollection Class C1.Win.

Object Model Syntax Visual Basic (Declaration) Public Class Border C# public class Border Inheritance Hierarchy 61 . Windows Server 2008 R2 (Server Core supported with SP1 or later).Win.C1Sizer Namespace Overview Class that implements rounded borders and exposes properties that control the appearance of the border.Visual Basic (Declaration) Public Class Border C# public class Border Inheritance Hierarchy System.C1Sizer.Object C1.Win. Windows XP SP3.Border Requirements Target Platforms: Windows 7. Windows Vista SP1 or later. Windows Server 2003 SP2 See Also Reference Border Members C1. Windows Server 2008 (Server Core not supported).

see Border members.C1Sizer. Public Properties Name Description Color Gets or sets the Color used to draw the border around the control.Win.C1Sizer Namespace Properties %%scrap%% " --> For a list of all members of this type. Corners Gets or sets the radii of the control corners. 62 . Windows Vista SP1 or later.Win. Thickness Gets or sets the thickness of the border around the control.Border Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Windows XP SP3.System.Win. Windows Server 2003 SP2 See Also Reference Border Members C1. Top See Also Reference Border Class C1.Object C1.C1Sizer Namespace Members Properties The following tables list the members exposed by Border. Windows Server 2008 R2 (Server Core supported with SP1 or later).

Top See Also Reference Border Class C1.} Requirements Target Platforms: Windows 7. Thickness Gets or sets the thickness of the border around the control. Corners Gets or sets the radii of the control corners. Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference Border Class Border Members 63 . set. Syntax Visual Basic (Declaration) Public Property Color As Color C# public Color Color {get. Windows Vista SP1 or later.C1Sizer Namespace Color Property Gets or sets the Color used to draw the border around the control. Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later).Public Properties Name Description Color Gets or sets the Color used to draw the border around the control.Win.

Windows Server 2008 R2 (Server Core supported with SP1 or later). Syntax Visual Basic (Declaration) Public Property Thickness As Padding C# public Padding Thickness {get. Windows Server 2003 SP2 See Also 64 .} Requirements Target Platforms: Windows 7. Windows Server 2003 SP2 See Also Reference Border Class Border Members Thickness Property Gets or sets the thickness of the border around the control. Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later). Syntax Visual Basic (Declaration) Public Property Corners As Corners C# public Corners Corners {get. set. set. Windows XP SP3.Corners Property Gets or sets the radii of the control corners. Windows XP SP3. Windows Vista SP1 or later.} Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Windows Server 2008 (Server Core not supported).

When the C1Sizer control is resized.NET framework (Dock and Anchor properties). You can use the Grid Editor to set the number and dimension of the grid's bands (rows and columns). You can set up bands at design time and configure them to act as splitters or to keep their size constant when the control is resized. You will rarely have to write any code in order to use the C1Sizer component. and set their Dock property to fill the form.Control Remarks The C1Sizer control allows you to define a grid made up of bands.Windows.Control C# public class C1Sizer : System.Reference Border Class Border Members C1Sizer A container control with a powerful grid layout manager that extends the basic layout capabilities provided by the .Forms. and which should have fixed dimensions. and contained controls move automatically to their new positions. Inheritance Hierarchy 65 . In most applications. 2) Use the Grid Editor to set up a grid layout at design time.Forms. then add controls that snap to these bands. and add controls which will snap to the grid.Windows. and also to specify which bands should act as splitters. Object Model Syntax Visual Basic (Declaration) Public Class C1Sizer Inherits System. you will follow these steps: 1) Add one or more C1Sizer controls to the form. the bands are automatically recalculated.

66 . the bands are automatically recalculated.System.Forms.ComponentModel.Windows.Win.MarshalByRefObject System.Win. Windows Vista SP1 or later. Windows Server 2003 SP2 See Also Reference C1Sizer Members C1.Forms. and contained controls move automatically to their new positions. Windows XP SP3.NET framework (Dock and Anchor properties).Control Remarks The C1Sizer control allows you to define a grid made up of bands.Component System.C1Sizer Requirements Target Platforms: Windows 7.Windows.C1Sizer.Forms. Object Model Syntax Visual Basic (Declaration) Public Class C1Sizer Inherits System.C1Sizer Namespace Overview A container control with a powerful grid layout manager that extends the basic layout capabilities provided by the .Object System. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 (Server Core not supported).Control C# public class C1Sizer : System.Control C1.Windows. When the C1Sizer control is resized. You can set up bands at design time and configure them to act as splitters or to keep their size constant when the control is resized. then add controls that snap to these bands.

and set their Dock property to fill the form. you will follow these steps: 1) Add one or more C1Sizer controls to the form.C1Sizer Namespace Members Properties Methods Events The following tables list the members exposed by C1Sizer. Public Constructors Name Description C1Sizer Constructor Initializes a new instance of the C1Sizer control.Win. Windows Server 2003 SP2 See Also Reference C1Sizer Members C1. and add controls which will snap to the grid. Windows Vista SP1 or later. and also to specify which bands should act as splitters.Control C1.C1Sizer Requirements Target Platforms: Windows 7. Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later). Top Public Properties 67 .You will rarely have to write any code in order to use the C1Sizer component.Windows.Forms.Component System.C1Sizer. Inheritance Hierarchy System. 2) Use the Grid Editor to set up a grid layout at design time. Windows Server 2008 (Server Core not supported).ComponentModel. In most applications.Object System.MarshalByRefObject System. You can use the Grid Editor to set the number and dimension of the grid's bands (rows and columns).Win. and which should have fixed dimensions.

BackColor Gets or sets the System.Control) AccessibleRole (Inherited from System.Forms.Drawing.Windows.Forms.Windows.Forms.Control) AccessibleName (Inherited from System.Forms.Windows.Control) CanFocus (Inherited from System.Color used to paint the background.Windows.Forms.Forms.Control) Border Gets the Border object that controls border thickness.Forms.Windows.Windows.Forms.Control) BackgroundImageLayout (Inherited from System.Forms.Control) AutoScrollOffset (Inherited from System. Bottom (Inherited from System.Control) AccessibleDescription (Inherited from System.Forms. and corner radii.Control) AllowDrop (Inherited from System.Windows.Windows.Forms.Control) 68 .Windows.Windows.Windows.Name Description AccessibilityObject (Inherited from System.Control) Bounds (Inherited from System.Control) BindingContext (Inherited from System. BackgroundImage (Inherited from System.Windows.Forms. color.Forms.Control) AutoSizeMode Gets or sets the layout mode for the C1Sizer control.Windows.Control) AccessibleDefaultActionDescription (Inherited from System.Forms.Windows.Control) Anchor (Inherited from System.

Forms.Forms.Windows.Control) ClientSize (Inherited from System.Control) 69 .Windows.Forms.Control) Container (Inherited from System.Windows.Control) ContextMenu (Inherited from System.Forms.Forms.Windows.Forms.Control) CausesValidation (Inherited from System.Windows.CanSelect (Inherited from System.Windows.Forms.Forms.Forms.Control) Capture (Inherited from System.Control) ClientRectangle (Inherited from System.Forms.Windows. Gets or sets the cursor that is displayed when the mouse pointer is over the control.ComponentModel.Windows.Control) Focused (Inherited from System.Forms.Control) DisplayRectangle (Inherited from System.Control) Dock (Inherited from System.Forms.Windows.Forms.Control) ContextMenuStrip (Inherited from System.Windows.Windows.Control) Created (Inherited from System. DataBindings (Inherited from System.Component) ContainsFocus (Inherited from System.Windows.Control) CompanyName (Inherited from System.Control) Enabled (Inherited from System.Windows.Windows.Forms.Forms.Control) Controls (Inherited from System.Control) Disposing (Inherited from System.Forms.Forms.Control) Cursor Overridden.Windows.Windows.Windows.

Forms.Windows.Control) LayoutEngine (Inherited from System.Windows.Windows. Grid Returns a reference to a Grid object that contains the layout information for the C1Sizer control.Control) InvokeRequired (Inherited from System.Forms.Forms. mode.Control) IsAccessible (Inherited from System.Control) Margin (Inherited from System.Forms.Forms. Handle (Inherited from System.Forms.Windows.Forms.Windows.Forms.Control) Location (Inherited from System. blend.Control) 70 .Control) Height (Inherited from System.Forms.Windows.Control) IsMirrored (Inherited from System. ImeMode (Inherited from System. ImageAlignment Gets or sets the alignment used to render the image.Windows.Control) IsDisposed (Inherited from System.Forms. and gamma correction.Windows.Windows.Forms.Windows.Control) HasChildren (Inherited from System.Windows.Forms.Control) IsHandleCreated (Inherited from System.Gradient Gets the Gradient object that controls gradient color. ImageScaling Gets or sets the scaling used to render the image.Control) Left (Inherited from System.Windows.Control) Image Gets or sets the image displayed in the control.Forms.Windows.

Windows.Forms.Windows.Windows.Control) Site (Inherited from System.Windows.Forms.Control) 71 .Control) Padding Gets or sets the padding between the control border and its content.Control) RecreatingHandle (Inherited from System.Forms.Windows.Forms. TabIndex (Inherited from System.Control) ProductVersion (Inherited from System.Windows.MaximumSize (Inherited from System.Windows.Windows.Control) ProductName (Inherited from System.Control) RightToLeft (Inherited from System.Forms.Control) MinimumSize (Inherited from System.Forms.Forms.Windows.Windows.Forms.Control) Tag (Inherited from System.Windows. in pixels.Forms.Forms.Control) Right (Inherited from System.Control) PreferredSize (Inherited from System.Forms.Forms.Forms.Forms.Windows.Windows.Forms.Windows.Control) SplitterWidth Gets or sets the width of the area between grid bands.Control) TabStop (Inherited from System.Windows.Windows.Control) Name (Inherited from System.Control) Region (Inherited from System.Forms.Control) Size (Inherited from System. Parent (Inherited from System.

Control) Visible (Inherited from System.Forms.Forms.Forms.MarshalByRefObject) Dispose (Inherited from System.Windows.Windows.Forms.Control) DrawToBitmap (Inherited from System.Forms.Control) UseWaitCursor (Inherited from System.Forms.Windows.Component) DoDragDrop (Inherited from System.Forms.Control) CreateControl (Inherited from System.Control) Top (Inherited from System.Control) 72 .Forms.Control) Width (Inherited from System.Windows.Control) Contains (Inherited from System.Forms.Windows.Windows.Control) BringToFront (Inherited from System.Windows. (Inherited from System.Forms.Windows.Text (Inherited from System.Forms.ComponentModel.Windows. BeginInvoke Overloaded.Windows.Windows.Forms.Control) Top Public Methods Name Description AddControl Overloaded.Windows.Control) TopLevelControl (Inherited from System.Control) CreateGraphics (Inherited from System. Adds a child control to the C1Sizer and positions it at a given cell on the grid.Windows.Control) CreateObjRef (Inherited from System.Forms.

EndInvoke

(Inherited from System.Windows.Forms.Control)

FindForm

(Inherited from System.Windows.Forms.Control)

Focus

(Inherited from System.Windows.Forms.Control)

GetCellAtPoint

Overloaded. Gets the cell at a given point on the control's
client area.

GetCellBounds

Overloaded. Gets the bounds of a cell range within the grid.

GetChildAtPoint

Overloaded. (Inherited from System.Windows.Forms.Control)

GetContainerControl

(Inherited from System.Windows.Forms.Control)

GetControlAtCell

Gets the first control at a given grid cell.

GetLifetimeService

(Inherited from System.MarshalByRefObject)

GetNextControl

(Inherited from System.Windows.Forms.Control)

GetPreferredSize

(Inherited from System.Windows.Forms.Control)

Hide

(Inherited from System.Windows.Forms.Control)

InitializeLifetimeService

(Inherited from System.MarshalByRefObject)

Invalidate

Overloaded. (Inherited from System.Windows.Forms.Control)

Invoke

Overloaded. (Inherited from System.Windows.Forms.Control)

PerformLayout

Overloaded. (Inherited from System.Windows.Forms.Control)

PointToClient

(Inherited from System.Windows.Forms.Control)

PointToScreen

(Inherited from System.Windows.Forms.Control)

PreProcessControlMessage (Inherited from System.Windows.Forms.Control)

73

PreProcessMessage

(Inherited from System.Windows.Forms.Control)

RectangleToClient

(Inherited from System.Windows.Forms.Control)

RectangleToScreen

(Inherited from System.Windows.Forms.Control)

Refresh

(Inherited from System.Windows.Forms.Control)

ResetText

(Inherited from System.Windows.Forms.Control)

ResumeLayout

Overloaded. Resumes normal layout logic.

Scale

(Inherited from System.Windows.Forms.Control)

Select

(Inherited from System.Windows.Forms.Control)

SelectNextControl

(Inherited from System.Windows.Forms.Control)

SendToBack

(Inherited from System.Windows.Forms.Control)

SetBounds

Overloaded. (Inherited from System.Windows.Forms.Control)

Show

(Inherited from System.Windows.Forms.Control)

SuspendLayout

Temporarily suspends the layout logic for the control.

ToString

(Inherited from System.ComponentModel.Component)

Update

(Inherited from System.Windows.Forms.Control)

Top

Public Events
Name

Description

BackColorChanged

(Inherited from System.Windows.Forms.Control)

BackgroundImageChanged

(Inherited from System.Windows.Forms.Control)

74

BackgroundImageLayoutChanged (Inherited from System.Windows.Forms.Control)
BindingContextChanged

(Inherited from System.Windows.Forms.Control)

CausesValidationChanged

(Inherited from System.Windows.Forms.Control)

ChangeUICues

(Inherited from System.Windows.Forms.Control)

Click

(Inherited from System.Windows.Forms.Control)

ClientSizeChanged

(Inherited from System.Windows.Forms.Control)

ContextMenuChanged

(Inherited from System.Windows.Forms.Control)

ContextMenuStripChanged

(Inherited from System.Windows.Forms.Control)

ControlAdded

(Inherited from System.Windows.Forms.Control)

ControlRemoved

(Inherited from System.Windows.Forms.Control)

CursorChanged

(Inherited from System.Windows.Forms.Control)

Disposed

(Inherited from System.ComponentModel.Component)

DockChanged

(Inherited from System.Windows.Forms.Control)

DoubleClick

(Inherited from System.Windows.Forms.Control)

DragDrop

(Inherited from System.Windows.Forms.Control)

DragEnter

(Inherited from System.Windows.Forms.Control)

DragLeave

(Inherited from System.Windows.Forms.Control)

DragOver

(Inherited from System.Windows.Forms.Control)

EnabledChanged

(Inherited from System.Windows.Forms.Control)

75

Control) GotFocus (Inherited from System.Control) HandleCreated (Inherited from System.Forms.Control) HelpRequested (Inherited from System.Forms.Windows.Windows.Forms.Control) KeyUp (Inherited from System.Forms.Control) Leave (Inherited from System.Forms.Control) FontChanged (Inherited from System.Windows.Forms.Windows.Control) ForeColorChanged (Inherited from System.Control) Invalidated (Inherited from System.Windows.Windows.Control) HandleDestroyed (Inherited from System.Control) ImeModeChanged (Inherited from System.Enter (Inherited from System.Control) KeyDown (Inherited from System.Windows.Windows.Control) KeyPress (Inherited from System.Forms.Control) Layout (Inherited from System.Forms.Windows.Control) 76 .Control) LostFocus (Inherited from System.Control) MarginChanged (Inherited from System.Forms.Forms.Forms.Forms.Windows.Forms.Windows.Windows.Forms.Forms.Control) GiveFeedback (Inherited from System.Control) MouseCaptureChanged (Inherited from System.Forms.Windows.Windows.Forms.Forms.Windows.Forms.Windows.Control) LocationChanged (Inherited from System.Windows.Windows.Windows.

Control) RegionChanged (Inherited from System.Windows.Control) QueryContinueDrag (Inherited from System.Windows.Forms.Windows.Control) MouseUp (Inherited from System.Control) RightToLeftChanged (Inherited from System.Control) MouseMove (Inherited from System.Windows.Windows.Forms.Forms.Windows.Forms.Forms.Control) Paint (Inherited from System.Windows.Control) MouseDoubleClick (Inherited from System.Windows.Windows.Windows.Forms.Windows.Forms.Windows.Control) PreviewKeyDown (Inherited from System.Control) MouseLeave (Inherited from System.Forms.Windows.Windows.Control) MouseWheel (Inherited from System.Forms.Forms.Control) MouseEnter (Inherited from System.Forms.Windows.Forms.MouseClick (Inherited from System.Control) Move (Inherited from System.Control) ParentChanged (Inherited from System.Forms.Forms.Control) Resize (Inherited from System.Windows.Control) MouseHover (Inherited from System.Control) PaddingChanged (Inherited from System.Control) MouseDown (Inherited from System.Windows.Control) 77 .Forms.Windows.Forms.Windows.Forms.Control) QueryAccessibilityHelp (Inherited from System.Forms.Forms.

C1Sizer Namespace C1Sizer Constructor Initializes a new instance of the C1Sizer control.Control) Top See Also Reference C1Sizer Class C1.Forms.Forms.Win.Windows.Forms.Windows.Windows.Control) TabIndexChanged (Inherited from System.Control) SystemColorsChanged (Inherited from System.Windows.SizeChanged (Inherited from System.Forms.Forms.Control) TabStopChanged (Inherited from System.Forms. SplitterMoving Fired when the user clicks a splitter and starts resizing a band (row or column) on the layout grid.Windows. Syntax Visual Basic (Declaration) Public Function New() 78 .Control) VisibleChanged (Inherited from System.Forms.Windows.Windows.Control) TextChanged (Inherited from System.Control) Validated (Inherited from System.Windows.Control) Validating (Inherited from System.Control) SplitterMoved Fired when the user finishes resizing a band (row or column) by dragging a splitter bar. StyleChanged (Inherited from System.Forms.Forms.Windows.

Adds a child control to the C1Sizer and positions it at a given cell on the grid.Windows. see C1Sizer members.Control) BringToFront (Inherited from System.Control) CreateControl (Inherited from System. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Methods %%scrap%% " --> For a list of all members of this type.Forms.MarshalByRefObject) 79 .Windows. Windows Server 2008 (Server Core not supported).C# public C1Sizer() Requirements Target Platforms: Windows 7.Control) CreateObjRef (Inherited from System.Control) Contains (Inherited from System. Public Methods Name Description AddControl Overloaded. Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows XP SP3.Control) CreateGraphics (Inherited from System.Windows. BeginInvoke Overloaded.Forms.Forms. (Inherited from System.Forms.Forms.Windows.Windows.

Windows.Windows.Forms.Windows.Forms.Windows.Control) Hide (Inherited from System.Forms.Forms.Component) DoDragDrop (Inherited from System. GetLifetimeService (Inherited from System. Gets the bounds of a cell range within the grid.Control) InitializeLifetimeService (Inherited from System.Windows.Forms.Dispose (Inherited from System.Forms.Control) GetContainerControl (Inherited from System.MarshalByRefObject) GetNextControl (Inherited from System.Forms.Forms.Control) PerformLayout Overloaded. GetChildAtPoint Overloaded.Forms.Windows. (Inherited from System.Control) FindForm (Inherited from System.Windows.Control) Focus (Inherited from System.Windows.Windows.Control) GetControlAtCell Gets the first control at a given grid cell.Control) 80 . (Inherited from System.MarshalByRefObject) Invalidate Overloaded.Control) EndInvoke (Inherited from System.Control) GetPreferredSize (Inherited from System.Control) DrawToBitmap (Inherited from System.ComponentModel.Windows.Forms. (Inherited from System.Forms.Control) GetCellAtPoint Overloaded.Control) Invoke Overloaded.Windows.Windows.Forms.Windows. Gets the cell at a given point on the control's client area.Forms. (Inherited from System. GetCellBounds Overloaded.

Windows.Control) PreProcessControlMessage (Inherited from System.Control) ResumeLayout Overloaded.Windows.Control) SuspendLayout Temporarily suspends the layout logic for the control.Windows.Windows.Windows.Windows.Windows.Forms.Control) PointToScreen (Inherited from System.Windows.Windows.Forms. ToString (Inherited from System.Forms.ComponentModel. (Inherited from System.Forms.Control) SendToBack (Inherited from System.Control) SelectNextControl (Inherited from System.Forms.Forms.Forms.Forms. Scale (Inherited from System.Control) Top See Also 81 .Forms.Control) RectangleToScreen (Inherited from System.Windows. Resumes normal layout logic.Forms.Windows.Windows.Control) SetBounds Overloaded.Forms.Control) ResetText (Inherited from System.PointToClient (Inherited from System.Windows.Forms.Forms.Control) Select (Inherited from System.Control) RectangleToClient (Inherited from System.Control) Refresh (Inherited from System.Forms.Component) Update (Inherited from System.Forms.Windows.Control) PreProcessMessage (Inherited from System.Windows.Control) Show (Inherited from System.

Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later. AddControl(Control. Adds a child control to the C1Sizer and positions it at a given cell on the grid. Overload List Overload Description AddControl(Control.Win.Int32.Forms. Windows Server 2008 (Server Core not supported). Index of the column where the child control will be positioned. Syntax 82 .Int32) Adds a child control to the C1Sizer and positions it at a given cell on the grid.C1Sizer Namespace AddControl Method Adds a child control to the C1Sizer and positions it at a given cell on the grid.Reference C1Sizer Class C1. Number of columns the child control should span.Int32.Int32) Adds a child control to the C1Sizer and positions it at a given cell on the grid.Int32.Control to add. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members AddControl(Control. Number of rows the child control should span.Int32. Index of the row where the child control will be positioned.Int32. Windows XP SP3. Requirements Target Platforms: Windows 7.Int32.Windows.Int32.Int32) Method Child System.

Windows Server 2008 (Server Core not supported).Windows. Windows Vista SP1 or later. int rowSpan. int col. Windows XP SP3.Visual Basic (Declaration) Public Overloads Sub AddControl( _ ByVal ctl As Control. Windows Server 2003 SP2 83 . col Index of the column where the child control will be positioned. Requirements Target Platforms: Windows 7. _ ByVal row As Integer. row Index of the row where the child control will be positioned. colSpan Number of columns the child control should span. int row. Windows Server 2008 R2 (Server Core supported with SP1 or later).Forms.Control to add. rowSpan Number of rows the child control should span. _ ByVal colSpan As Integer _ ) C# public void AddControl( Control ctl. int colSpan ) Parameters ctl Child System. _ ByVal col As Integer. _ ByVal rowSpan As Integer.

Index of the column where the child control will be positioned. _ ByVal col As Integer _ ) C# public void AddControl( Control ctl. Syntax Visual Basic (Declaration) Public Overloads Sub AddControl( _ ByVal ctl As Control. row Index of the row where the child control will be positioned.Int32) Method Child System. _ ByVal row As Integer.See Also Reference C1Sizer Class C1Sizer Members Overload List AddControl(Control. int row. col Index of the column where the child control will be positioned. Adds a child control to the C1Sizer and positions it at a given cell on the grid. 84 .Windows.Int32.Forms.Forms.Windows.Control to add. int col ) Parameters ctl Child System.Control to add. Index of the row where the child control will be positioned.

Int32) Gets the cell at a given point on the control's client area. Overload List Overload Description GetCellAtPoint(Point) Gets the cell at a given point on the control's client area. Windows XP SP3.Requirements Target Platforms: Windows 7. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later. Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later.Point that specifies the cell position. Syntax 85 . Windows Server 2008 R2 (Server Core supported with SP1 or later). GetCellAtPoint(Int32. Requirements Target Platforms: Windows 7.Drawing. Gets the cell at a given point on the control's client area. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Overload List GetCellAtPoint Method Gets the cell at a given point on the control's client area. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members GetCellAtPoint(Point) Method System. Windows XP SP3.

Y coordinate of the point. Windows XP SP3. Gets the cell at a given point on the control's client area. Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later).Point where the X and Y properties correspond to the column row indices of the cell at the given point.Point that specifies the cell position.Int32) Method X coordinate of the point.Visual Basic (Declaration) Public Overloads Function GetCellAtPoint( _ ByVal pt As Point _ ) As Point C# public Point GetCellAtPoint( Point pt ) Parameters pt System. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Overload List GetCellAtPoint(Int32. Requirements Target Platforms: Windows 7.Drawing. Syntax Visual Basic (Declaration) 86 .Drawing. Return Value A System. Windows Server 2008 (Server Core not supported).

Windows Vista SP1 or later. Return Value A System. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Overload List GetCellBounds Method Gets the bounds of a cell range within the grid.Drawing.Public Overloads Function GetCellAtPoint( _ ByVal x As Integer.Point where the X and Y properties correspond to the column row indices of the cell at the given point. Requirements Target Platforms: Windows 7. Windows XP SP3. _ ByVal y As Integer _ ) As Point C# public Point GetCellAtPoint( int x. y Y coordinate of the point. int y ) Parameters x X coordinate of the point. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 (Server Core not supported). Overload List Overload Description 87 .

GetCellBounds(Int32.Int32) Gets the bounds of a cell within the grid. _ ByVal col As Integer. Gets the bounds of a cell range within the grid. Windows XP SP3. Requirements Target Platforms: Windows 7. Windows Vista SP1 or later. _ ByVal colSpan As Integer _ ) As Rectangle C# public Rectangle GetCellBounds( int row.Int32. GetCellBounds(Int32. _ ByVal rowSpan As Integer. Index of the first column in the range.Int32) Method Index of the first row in the range. Syntax Visual Basic (Declaration) Public Overloads Function GetCellBounds( _ ByVal row As Integer.Int32. int rowSpan.Int32. int col. int colSpan 88 .Int32) Gets the bounds of a cell range within the grid.Int32. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members GetCellBounds(Int32. Number or rows in the range. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 (Server Core not supported). Number or columns in the range.

colSpan Number or columns in the range. Syntax Visual Basic (Declaration) 89 .) Parameters row Index of the first row in the range. Windows Vista SP1 or later. Windows Server 2008 (Server Core not supported). Requirements Target Platforms: Windows 7.Int32) Method Index of the row that contains the cell. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Overload List GetCellBounds(Int32. Gets the bounds of a cell within the grid. col Index of the first column in the range. Windows XP SP3. Return Value A System. rowSpan Number or rows in the range. Index of the column that contains the cell.Rectangle that contains the bounds of the cell range.Drawing.

Index of the column that contains the cell. int col ) Parameters row Index of the row that contains the cell. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Overload List GetControlAtCell Method Index of the row that contains the cell.Public Overloads Function GetCellBounds( _ ByVal row As Integer. Syntax 90 . _ ByVal col As Integer _ ) As Rectangle C# public Rectangle GetCellBounds( int row. Windows Vista SP1 or later. Windows XP SP3.Rectangle that contains the bounds of the cell.Drawing. Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Return Value A System. col Index of the column that contains the cell. Gets the first control at a given grid cell. Windows Server 2008 R2 (Server Core supported with SP1 or later).

Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members ResumeLayout Method Resumes normal layout logic. Windows Server 2008 (Server Core not supported). or null if the cell is empty. int col ) Parameters row Index of the row that contains the cell. Windows XP SP3. Requirements Target Platforms: Windows 7. Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later).Visual Basic (Declaration) Public Function GetControlAtCell( _ ByVal row As Integer. Overload List Overload Description 91 . Return Value The first control at the cell. _ ByVal col As Integer _ ) As Control C# public Control GetControlAtCell( int row. col Index of the column that contains the cell.

Windows Vista SP1 or later.ResumeLayout() Resumes normal layout logic. Windows Server 2008 (Server Core not supported). Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members ResumeLayout() Method Resumes normal layout logic. Syntax Visual Basic (Declaration) Public Overloads Shadows Sub ResumeLayout() C# public new void ResumeLayout() Requirements Target Platforms: Windows 7. ResumeLayout(Boolean) Resumes normal layout logic. Optionally forces an immediate layout of pending layout requests. Requirements Target Platforms: Windows 7. Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 (Server Core not supported). Windows XP SP3. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Overload List 92 .

Syntax Visual Basic (Declaration) Public Overloads Shadows Sub ResumeLayout( _ ByVal performLayout As Boolean _ ) C# public new void ResumeLayout( bool performLayout ) Parameters performLayout True to execute pending layout requests. False. Requirements Target Platforms: Windows 7. Syntax Visual Basic (Declaration) Public Shadows Sub SuspendLayout() 93 . Windows Server 2008 R2 (Server Core supported with SP1 or later). Resumes normal layout logic. otherwise. Windows Vista SP1 or later. Optionally forces an immediate layout of pending layout requests.ResumeLayout(Boolean) Method True to execute pending layout requests. Windows Server 2008 (Server Core not supported). otherwise. Windows XP SP3. False. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Overload List SuspendLayout Method Temporarily suspends the layout logic for the control.

Windows. Windows XP SP3. Windows Vista SP1 or later.Control) 94 . see C1Sizer members. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Properties %%scrap%% " --> For a list of all members of this type.Control) AccessibleDefaultActionDescription (Inherited from System.Control) AccessibleRole (Inherited from System.Forms.Forms.C# public new void SuspendLayout() Requirements Target Platforms: Windows 7.Control) AllowDrop (Inherited from System.Windows.Forms. Public Properties Name Description AccessibilityObject (Inherited from System.Control) Anchor (Inherited from System.Forms.Control) AccessibleName (Inherited from System.Forms.Control) AutoScrollOffset (Inherited from System.Windows.Windows.Windows.Windows.Control) AccessibleDescription (Inherited from System.Forms. Windows Server 2008 (Server Core not supported).Windows.Windows. Windows Server 2008 R2 (Server Core supported with SP1 or later).Forms.Forms.

Windows.Forms.Forms.Control) 95 .Control) ClientRectangle (Inherited from System.Forms.Windows.Control) CanFocus (Inherited from System.Forms.Windows.Forms. BackgroundImage (Inherited from System.Control) CompanyName (Inherited from System.Color used to paint the background.Control) ContextMenu (Inherited from System.ComponentModel.Windows.Windows.Forms. color. BackColor Gets or sets the System.Windows. and corner radii.Windows.Windows.Forms.Windows.Forms.Windows.Windows.Drawing.Forms.Forms.Forms.Component) ContainsFocus (Inherited from System.Control) Container (Inherited from System.Control) Capture (Inherited from System.Control) BindingContext (Inherited from System. Bottom (Inherited from System.Control) ClientSize (Inherited from System.Control) CausesValidation (Inherited from System.Windows.Forms.Control) CanSelect (Inherited from System.Forms.Windows.Control) Bounds (Inherited from System.Forms.Windows.AutoSizeMode Gets or sets the layout mode for the C1Sizer control.Control) BackgroundImageLayout (Inherited from System.Control) Border Gets the Border object that controls border thickness.

Control) Dock (Inherited from System. ImageScaling Gets or sets the scaling used to render the image.Control) DisplayRectangle (Inherited from System. ImageAlignment Gets or sets the alignment used to render the image.Control) Height (Inherited from System.Windows.Control) Disposing (Inherited from System.Windows.Control) Cursor Overridden.Control) HasChildren (Inherited from System.Forms.Forms.Forms.Control) Image Gets or sets the image displayed in the control. mode.Control) Enabled (Inherited from System.Windows.Forms.Forms.Windows. Handle (Inherited from System.Windows.Windows. Gets or sets the cursor that is displayed when the mouse pointer is over the control.Windows.Forms. and gamma correction.Forms.Windows.Forms.Windows. DataBindings (Inherited from System.ContextMenuStrip (Inherited from System.Control) Created (Inherited from System. 96 .Control) Focused (Inherited from System. Grid Returns a reference to a Grid object that contains the layout information for the C1Sizer control.Forms.Forms.Control) Controls (Inherited from System.Windows.Control) Gradient Gets the Gradient object that controls gradient color.Windows.Forms. blend.Forms.Windows.

Forms.Forms.Windows.Windows.Windows.Forms.Control) IsHandleCreated (Inherited from System.Control) Location (Inherited from System.Forms.Control) MinimumSize (Inherited from System.Windows.Forms.Control) IsAccessible (Inherited from System.Control) InvokeRequired (Inherited from System.Windows.Forms. Parent (Inherited from System.Windows.Forms.Control) PreferredSize (Inherited from System.Forms.Control) Left (Inherited from System.Control) 97 .Windows.Control) Name (Inherited from System.Forms.ImeMode (Inherited from System.Windows.Windows.Forms.Control) MaximumSize (Inherited from System.Forms.Control) RecreatingHandle (Inherited from System.Windows.Control) Padding Gets or sets the padding between the control border and its content.Windows.Control) ProductName (Inherited from System.Control) IsDisposed (Inherited from System.Windows.Forms.Windows.Forms.Forms.Forms.Windows.Windows.Forms.Forms.Windows.Control) LayoutEngine (Inherited from System.Windows.Forms.Windows.Control) Margin (Inherited from System.Control) IsMirrored (Inherited from System.Control) ProductVersion (Inherited from System.

Forms.Forms.Windows.Windows.Windows.Control) Top (Inherited from System.Windows.Region (Inherited from System.Forms.Control) Top See Also Reference C1Sizer Class C1.Control) Text (Inherited from System. in pixels.Windows.Windows.Forms.Control) Size (Inherited from System.Forms.Windows.Control) Site (Inherited from System.Forms.Windows. TabIndex (Inherited from System.Forms.Win.Forms.Forms.Windows.Control) Right (Inherited from System.Control) SplitterWidth Gets or sets the width of the area between grid bands.Windows.Windows.Windows.Control) Visible (Inherited from System.Control) TopLevelControl (Inherited from System.Forms.Control) UseWaitCursor (Inherited from System.Control) Tag (Inherited from System.Forms.C1Sizer Namespace 98 .Control) TabStop (Inherited from System.Windows.Forms.Control) RightToLeft (Inherited from System.Control) Width (Inherited from System.Forms.Forms.Windows.

Syntax Visual Basic (Declaration) Public Property AutoSizeMode As AutoSizeEnum C# public AutoSizeEnum AutoSizeMode {get. Windows Server 2003 SP2 See Also 99 . Windows Vista SP1 or later. Windows Server 2008 (Server Core not supported). set. Windows XP SP3.AutoSizeMode Property Gets or sets the layout mode for the C1Sizer control.} Requirements Target Platforms: Windows 7.Color used to paint the background. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members BackColor Property Gets or sets the System. set. Syntax Visual Basic (Declaration) Public Shadows Property BackColor As Color C# public new Color BackColor {get. Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows XP SP3.Drawing. Windows Server 2008 (Server Core not supported). Windows Server 2008 R2 (Server Core supported with SP1 or later).} Requirements Target Platforms: Windows 7.

Syntax Visual Basic (Declaration) Public ReadOnly Property Border As Border C# public Border Border {get. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Cursor Property Gets or sets the cursor that is displayed when the mouse pointer is over the control. Syntax Visual Basic (Declaration) Public Overrides Property Cursor As Cursor C# public override Cursor Cursor {get. color. set. Windows Vista SP1 or later. Windows Server 2008 (Server Core not supported). Windows Server 2008 R2 (Server Core supported with SP1 or later). and corner radii.Reference C1Sizer Class C1Sizer Members Border Property Gets the Border object that controls border thickness. Windows XP SP3.} Requirements Target Platforms: Windows 7.} Requirements 100 .

Syntax Visual Basic (Declaration) Public ReadOnly Property Gradient As Gradient C# public Gradient Gradient {get. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Gradient Property Gets the Gradient object that controls gradient color. Windows Vista SP1 or later. Windows Server 2008 (Server Core not supported). Windows XP SP3. Syntax Visual Basic (Declaration) Public ReadOnly Property Grid As Grid 101 . Windows XP SP3. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Grid Property Returns a reference to a Grid object that contains the layout information for the C1Sizer control. Windows Vista SP1 or later. Windows Server 2008 (Server Core not supported).} Requirements Target Platforms: Windows 7. Windows Server 2008 R2 (Server Core supported with SP1 or later). mode. and gamma correction.Target Platforms: Windows 7. blend. Windows Server 2008 R2 (Server Core supported with SP1 or later).

Windows XP SP3. set.} Remarks The Grid object contains collections of bands (Row and Column objects) that determine how the control adjusts its internal layout when it is resized. Windows Server 2008 R2 (Server Core supported with SP1 or later). Syntax Visual Basic (Declaration) Public Property Image As Image C# public Image Image {get. Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later. Windows Server 2003 SP2 See Also Reference 102 .C# public Grid Grid {get. Windows Vista SP1 or later. Windows XP SP3. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Image Property Gets or sets the image displayed in the control. All controls contained in a C1Sizer control are attached to specific bands in the Grid object.} Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Requirements Target Platforms: Windows 7. Windows Server 2008 R2 (Server Core supported with SP1 or later).

Windows Server 2008 (Server Core not supported). set. Windows XP SP3. Windows Server 2003 SP2 103 . Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later.} Requirements Target Platforms: Windows 7. Syntax Visual Basic (Declaration) Public Property ImageAlignment As ImageAlignment C# public ImageAlignment ImageAlignment {get. set.} Requirements Target Platforms: Windows 7. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members ImageScaling Property Gets or sets the scaling used to render the image. Syntax Visual Basic (Declaration) Public Property ImageScaling As ImageScaling C# public ImageScaling ImageScaling {get.C1Sizer Class C1Sizer Members ImageAlignment Property Gets or sets the alignment used to render the image. Windows XP SP3. Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later).

Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members SplitterWidth Property Gets or sets the width of the area between grid bands. Windows XP SP3. Syntax Visual Basic (Declaration) Public Shadows Property Padding As Padding C# public new Padding Padding {get.} Requirements Target Platforms: Windows 7. set.} Remarks 104 . Windows Server 2008 (Server Core not supported). set.See Also Reference C1Sizer Class C1Sizer Members Padding Property Gets or sets the padding between the control border and its content. in pixels. Windows Vista SP1 or later. Syntax Visual Basic (Declaration) Public Property SplitterWidth As Integer C# public int SplitterWidth {get. Windows Server 2008 R2 (Server Core supported with SP1 or later).

The splitter width determines the area between adjacent controls contained in the C1Sizer control.Forms.Control) 105 .Windows. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members Events %%scrap%% " --> For a list of all members of this type.Forms.Windows. see C1Sizer members. Windows Vista SP1 or later.Forms.Forms.Windows. Windows Server 2008 (Server Core not supported).Windows.Forms.Forms.Control) BackgroundImageLayoutChanged (Inherited from System.Windows.Control) BackgroundImageChanged (Inherited from System. Requirements Target Platforms: Windows 7.Control) Click (Inherited from System.Forms.Control) BindingContextChanged (Inherited from System.Forms.Control) CausesValidationChanged (Inherited from System.Windows.Windows. Windows XP SP3.Control) ClientSizeChanged (Inherited from System. Public Events Name Description BackColorChanged (Inherited from System.Control) ChangeUICues (Inherited from System.Windows.

Forms.Component) DockChanged (Inherited from System.Windows.Forms.Windows.Control) DragDrop (Inherited from System.Control) DragOver (Inherited from System.Windows.Forms.Windows.ContextMenuChanged (Inherited from System.Forms.Forms.Control) GiveFeedback (Inherited from System.Forms.Forms.Control) 106 .Control) EnabledChanged (Inherited from System.Control) CursorChanged (Inherited from System.Windows.Control) ControlRemoved (Inherited from System.Control) Enter (Inherited from System.Control) DragEnter (Inherited from System.Windows.Forms.Windows.Windows.Forms.Windows.Control) ControlAdded (Inherited from System.Control) ForeColorChanged (Inherited from System.Windows.Control) GotFocus (Inherited from System.Forms.Windows.Forms.Forms.Control) DoubleClick (Inherited from System.Windows.Forms.Windows.Windows.Control) Disposed (Inherited from System.Windows.Control) HandleCreated (Inherited from System.Windows.ComponentModel.Forms.Control) FontChanged (Inherited from System.Forms.Control) DragLeave (Inherited from System.Forms.Forms.Windows.Windows.Control) ContextMenuStripChanged (Inherited from System.Forms.

Forms.Forms.Forms.Forms.Control) MouseCaptureChanged (Inherited from System.Forms.Windows.Control) HelpRequested (Inherited from System.Windows.Windows.Windows.Forms.Windows.Forms.Forms.Control) 107 .Forms.Control) LostFocus (Inherited from System.Forms.Control) MouseDoubleClick (Inherited from System.HandleDestroyed (Inherited from System.Forms.Windows.Forms.Windows.Windows.Forms.Windows.Control) MouseEnter (Inherited from System.Control) MarginChanged (Inherited from System.Forms.Control) Layout (Inherited from System.Control) MouseDown (Inherited from System.Control) KeyUp (Inherited from System.Control) LocationChanged (Inherited from System.Control) KeyDown (Inherited from System.Windows.Control) MouseLeave (Inherited from System.Windows.Windows.Windows.Windows.Control) Leave (Inherited from System.Windows.Control) ImeModeChanged (Inherited from System.Forms.Windows.Forms.Forms.Control) MouseClick (Inherited from System.Windows.Windows.Control) MouseHover (Inherited from System.Windows.Control) Invalidated (Inherited from System.Forms.Forms.Control) KeyPress (Inherited from System.

Control) RightToLeftChanged (Inherited from System.Control) RegionChanged (Inherited from System.Forms.Forms.Windows.Windows.Control) SystemColorsChanged (Inherited from System.Forms.MouseMove (Inherited from System.Control) MouseUp (Inherited from System.Forms.Control) PreviewKeyDown (Inherited from System.Windows.Forms.Forms.Control) MouseWheel (Inherited from System.Forms.Forms.Control) SizeChanged (Inherited from System.Control) Move (Inherited from System.Control) QueryAccessibilityHelp (Inherited from System.Windows.Control) Paint (Inherited from System.Control) 108 .Forms. StyleChanged (Inherited from System.Control) PaddingChanged (Inherited from System.Forms.Forms.Forms.Control) SplitterMoved Fired when the user finishes resizing a band (row or column) by dragging a splitter bar.Windows.Windows.Windows.Forms.Windows.Forms.Control) ParentChanged (Inherited from System. SplitterMoving Fired when the user clicks a splitter and starts resizing a band (row or column) on the layout grid.Windows.Windows.Control) QueryContinueDrag (Inherited from System.Windows.Windows.Forms.Windows.Windows.Forms.Windows.Control) Resize (Inherited from System.Windows.

Windows.Forms.Win.Control) Validated (Inherited from System.Windows.Windows.Forms.Control) TabStopChanged (Inherited from System. Property Description Band Gets a reference to the band (row or column) that caused the event. The following C1SizerEventArgs properties provide information specific to this event.Forms.Forms.Windows.Control) VisibleChanged (Inherited from System.C1Sizer Namespace SplitterMoved Event Fired when the user finishes resizing a band (row or column) by dragging a splitter bar.Control) Validating (Inherited from System. 109 .Windows.Forms. Syntax Visual Basic (Declaration) Public Event SplitterMoved As C1SizerEventHandler C# public event C1SizerEventHandler SplitterMoved Event Data The event handler receives an argument of type C1SizerEventArgs containing data related to this event.Windows.Forms.TabIndexChanged (Inherited from System.Control) Top See Also Reference C1Sizer Class C1.Control) TextChanged (Inherited from System.

Windows Vista SP1 or later. Windows Server 2008 (Server Core not supported). Y Gets the X coordinate of the mouse when the event is fired. 110 . Syntax Visual Basic (Declaration) Public Event SplitterMoving As C1SizerEventHandler C# public event C1SizerEventHandler SplitterMoving Event Data The event handler receives an argument of type C1SizerEventArgs containing data related to this event. Windows XP SP3. X Gets the X coordinate of the mouse when the event is fired. Y Gets the X coordinate of the mouse when the event is fired. The following C1SizerEventArgs properties provide information specific to this event. Requirements Target Platforms: Windows 7.X Gets the X coordinate of the mouse when the event is fired. Property Description Band Gets a reference to the band (row or column) that caused the event. Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members SplitterMoving Event Fired when the user clicks a splitter and starts resizing a band (row or column) on the layout grid. Windows Server 2008 R2 (Server Core supported with SP1 or later).

Win.EventArgs Inheritance Hierarchy System.C1Sizer.C1SizerEventArgs Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported).EventArgs C# public class C1SizerEventArgs : System.Object System. Object Model Syntax Visual Basic (Declaration) Public Class C1SizerEventArgs Inherits System. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2003 SP2 See Also 111 . Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference C1Sizer Class C1Sizer Members C1SizerEventArgs Provides data for the C1Sizer. Windows Vista SP1 or later.SplitterMoved events of a C1Sizer control.Requirements Target Platforms: Windows 7. Windows XP SP3. Windows Vista SP1 or later.EventArgs C1.SplitterMoving and C1Sizer.

Reference C1SizerEventArgs Members C1. Windows Server 2008 (Server Core not supported).Object System.Win.Win. Windows XP SP3.C1Sizer Namespace Members Properties The following tables list the members exposed by C1SizerEventArgs.Win. Windows Vista SP1 or later.SplitterMoved events of a C1Sizer control. 112 .C1SizerEventArgs Requirements Target Platforms: Windows 7. Object Model Syntax Visual Basic (Declaration) Public Class C1SizerEventArgs Inherits System.EventArgs Inheritance Hierarchy System. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2003 SP2 See Also Reference C1SizerEventArgs Members C1.SplitterMoving and C1Sizer.EventArgs C1.C1Sizer.EventArgs C# public class C1SizerEventArgs : System.C1Sizer Namespace Overview Provides data for the C1Sizer.

Win.Win. Y Gets the X coordinate of the mouse when the event is fired.C1Sizer Namespace Properties %%scrap%% " --> For a list of all members of this type. see C1SizerEventArgs members. Top See Also Reference C1SizerEventArgs Class C1. X Gets the X coordinate of the mouse when the event is fired.C1Sizer Namespace 113 . X Gets the X coordinate of the mouse when the event is fired. Top See Also Reference C1SizerEventArgs Class C1. Y Gets the X coordinate of the mouse when the event is fired.Public Properties Name Description Band Gets a reference to the band (row or column) that caused the event. Public Properties Name Description Band Gets a reference to the band (row or column) that caused the event.

Windows XP SP3. Syntax Visual Basic (Declaration) Public ReadOnly Property Band As Band C# public Band Band {get. Windows Server 2003 SP2 See Also 114 . Windows Server 2008 (Server Core not supported). Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later.} Requirements Target Platforms: Windows 7. Windows XP SP3.Band Property Gets a reference to the band (row or column) that caused the event.} Requirements Target Platforms: Windows 7. Windows Server 2003 SP2 See Also Reference C1SizerEventArgs Class C1SizerEventArgs Members X Property Gets the X coordinate of the mouse when the event is fired. Syntax Visual Basic (Declaration) Public ReadOnly Property X As Integer C# public int X {get. Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later.

} Requirements Target Platforms: Windows 7. Windows Vista SP1 or later.ComponentModel.Component 115 . Windows Server 2008 (Server Core not supported). Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later). Syntax Visual Basic (Declaration) Public ReadOnly Property Y As Integer C# public int Y {get.Reference C1SizerEventArgs Class C1SizerEventArgs Members Y Property Gets the X coordinate of the mouse when the event is fired. Object Model Syntax Visual Basic (Declaration) Public Class C1SizerLight Inherits System. Windows Server 2003 SP2 See Also Reference C1SizerEventArgs Class C1SizerEventArgs Members C1SizerLight Component that resizes all controls on a form when the form is resized.

ComponentModel. In most applications.C1Sizer Namespace Overview Component that resizes all controls on a form when the form is resized. you will simply design forms as usual. it keeps track of the forms' size and position. then add a C1SizerLight component to the form and let it resize all controls on the form automatically.Component C1.Object System. Inheritance Hierarchy System. When the form is resized.Win. You can prevent all font resizing by setting the ResizeFonts property to false.Component Remarks When you add a C1SizerLight component to a form.ComponentModel. Note that the C1SizerLight component does not work at design time. Windows XP SP3. In some cases. This allows you to resize your form without affecting the layout of the controls on the form.MarshalByRefObject System.C1Sizer. You will rarely have to write any code in order to use the C1SizerLight component. C1SizerLight resizes all contained controls proportionally.Win. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2003 SP2 See Also Reference C1SizerLight Members C1. Or you can keep the font size constant for certain controls by handling the ResizingFont event. Windows Vista SP1 or later. when the form is resized. Object Model 116 .C# public class C1SizerLight : System. you may want to control how fonts are resized when the form dimensions change.C1SizerLight Requirements Target Platforms: Windows 7. C1SizerLight can also resize the fonts on all or some of the contained controls. so the form retains its appearance at any resolution. Windows Server 2008 (Server Core not supported).

Note that the C1SizerLight component does not work at design time. Windows Server 2008 (Server Core not supported).Win. You can prevent all font resizing by setting the ResizeFonts property to false.MarshalByRefObject System. In some cases. when the form is resized. This allows you to resize your form without affecting the layout of the controls on the form.ComponentModel. you will simply design forms as usual. you may want to control how fonts are resized when the form dimensions change. Or you can keep the font size constant for certain controls by handling the ResizingFont event.C1Sizer.ComponentModel.Component Remarks When you add a C1SizerLight component to a form. When the form is resized. so the form retains its appearance at any resolution.Component C# public class C1SizerLight : System.Object System.Syntax Visual Basic (Declaration) Public Class C1SizerLight Inherits System. In most applications. Inheritance Hierarchy System.C1SizerLight Requirements Target Platforms: Windows 7. C1SizerLight resizes all contained controls proportionally. Windows Server 2003 SP2 See Also 117 . then add a C1SizerLight component to the form and let it resize all controls on the form automatically.Component C1. C1SizerLight can also resize the fonts on all or some of the contained controls. You will rarely have to write any code in order to use the C1SizerLight component.ComponentModel. Windows XP SP3. it keeps track of the forms' size and position. Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later).

ComponentModel.MarshalByRefObject) Dispose() (Inherited from System.Component) Top Public Methods Name Description CreateObjRef (Inherited from System.Win.Reference C1SizerLight Members C1.ComponentModel. Public Constructors Name Description C1SizerLight Constructor Overloaded.Component) Enabled Determines whether the C1SizerLight should resize the controls on the form when the form is resized. ResizeFonts Determines whether the C1SizerLight should resize control fonts in addition to the controls themselves.C1Sizer Namespace Members Properties Methods Events The following tables list the members exposed by C1SizerLight.Component) 118 .ComponentModel. Site (Inherited from System. Top Public Properties Name Description Container (Inherited from System.

ResizingFont Fires before the C1SizerLight resizes the font in a control in response to the form being resized.Win.IContainer.MarshalByRefObject) InitializeLifetimeService (Inherited from System. GetLifetimeService (Inherited from System.Component) ResizingControl Fires before the C1SizerLight resizes a control in response to the form being resized.ComponentModel.GetAutoResize For internal use.MarshalByRefObject) SetAutoResize For internal use. Top See Also Reference C1SizerLight Class C1.ComponentModel. 119 .ComponentModel.Component) Top Public Events Name Description Disposed (Inherited from System. ToString (Inherited from System.C1Sizer Namespace C1SizerLight Constructor Overload List Overload Description C1SizerLight Constructor(IContainer) Initializes a new instance of a C1SizerLight component in a given System.

C1SizerLight Constructor()

Initializes a new instance of a C1SizerLight.

Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2

See Also
Reference
C1SizerLight Class
C1SizerLight Members

C1SizerLight Constructor(IContainer)
The IContainer that contains the component.
Initializes a new instance of a C1SizerLight component in a given
System.ComponentModel.IContainer.

Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal container As IContainer _
)
C#
public C1SizerLight(
IContainer container
)

Parameters
container
The IContainer that contains the component.

Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2

120

See Also
Reference
C1SizerLight Class
C1SizerLight Members
Overload List

C1SizerLight Constructor()
Initializes a new instance of a C1SizerLight.

Syntax
Visual Basic (Declaration)
Public Function New()
C#
public C1SizerLight()

Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2

See Also
Reference
C1SizerLight Class
C1SizerLight Members
Overload List

Methods
%%scrap%%
" -->
For a list of all members of this type, see C1SizerLight members.

Public Methods
Name

Description

121

CreateObjRef

(Inherited from System.MarshalByRefObject)

Dispose()

(Inherited from System.ComponentModel.Component)

GetAutoResize

For internal use.

GetLifetimeService

(Inherited from System.MarshalByRefObject)

InitializeLifetimeService (Inherited from System.MarshalByRefObject)
SetAutoResize

For internal use.

ToString

(Inherited from System.ComponentModel.Component)

Top

See Also
Reference
C1SizerLight Class
C1.Win.C1Sizer Namespace

GetAutoResize Method
For internal use.

Syntax
Visual Basic (Declaration)
Public Function GetAutoResize( _
ByVal frm As Form _
) As Boolean
C#
public bool GetAutoResize(
Form frm
)

Parameters
frm

122

Windows Vista SP1 or later. Windows Server 2003 SP2 See Also Reference C1SizerLight Class C1SizerLight Members SetAutoResize Method For internal use.Requirements Target Platforms: Windows 7. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference 123 . Windows XP SP3. _ ByVal value As Boolean _ ) C# public void SetAutoResize( Form frm. Syntax Visual Basic (Declaration) Public Sub SetAutoResize( _ ByVal frm As Form. bool value ) Parameters frm value Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows XP SP3.

Component) Top See Also Reference C1SizerLight Class C1.Win.C1Sizer Namespace Enabled Property Determines whether the C1SizerLight should resize the controls on the form when the form is resized. Syntax Visual Basic (Declaration) Public Property Enabled As Boolean C# 124 . see C1SizerLight members.C1SizerLight Class C1SizerLight Members Properties %%scrap%% " --> For a list of all members of this type.ComponentModel. Site (Inherited from System.ComponentModel.Component) Enabled Determines whether the C1SizerLight should resize the controls on the form when the form is resized. ResizeFonts Determines whether the C1SizerLight should resize control fonts in addition to the controls themselves. Public Properties Name Description Container (Inherited from System.

Windows Server 2003 SP2 See Also Reference C1SizerLight Class C1SizerLight Members ResizeFonts Property Determines whether the C1SizerLight should resize control fonts in addition to the controls themselves. create the controls.} Requirements Target Platforms: Windows 7. Windows XP SP3. Syntax Visual Basic (Declaration) Public Property ResizeFonts As Boolean C# public bool ResizeFonts {get. Windows Server 2003 SP2 See Also Reference 125 .} Remarks This property has no effect at design time. then set it back to true. Windows Server 2008 R2 (Server Core supported with SP1 or later). Child controls are automatically resized at run time only. Windows Server 2008 (Server Core not supported). Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later. This will allow C1SizerLight to update its internal layout information.public bool Enabled {get. set. set. Windows XP SP3. If you need to create controls at run time. you should set the Enabled property to false.

ResizingFont Fires before the C1SizerLight resizes the font in a control in response to the form being resized.Win.ComponentModel.C1Sizer Namespace ResizingControl Event Fires before the C1SizerLight resizes a control in response to the form being resized. Top See Also Reference C1SizerLight Class C1. Syntax Visual Basic (Declaration) Public Event ResizingControl As C1SizerLightEventHandler C# public event C1SizerLightEventHandler ResizingControl Event Data 126 .Component) ResizingControl Fires before the C1SizerLight resizes a control in response to the form being resized.C1SizerLight Class C1SizerLight Members Events %%scrap%% " --> For a list of all members of this type. Public Events Name Description Disposed (Inherited from System. see C1SizerLight members.

Windows Server 2003 SP2 See Also Reference C1SizerLight Class C1SizerLight Members ResizingFont Event Example Fires before the C1SizerLight resizes the font in a control in response to the form being resized.The event handler receives an argument of type C1SizerLightEventArgs containing data related to this event. Syntax Visual Basic (Declaration) Public Event ResizingFont As C1SizerLightEventHandler C# 127 . you may have a an event handler that takes care of resizing specific controls on the form using specialized logic. In some cases. you may want to prevent the C1SizerLight from resizing certain controls on the form. Windows Vista SP1 or later. The following C1SizerLightEventArgs properties provide information specific to this event. For example. Control Gets a reference to the control whose font is about to be resized by the C1SizerLight component. Property Description Cancel Determines whether the font for this control should be resized. Remarks By default. C1SizerLight will resize all child controls on a form when the form is resized (except controls that are docked or contained in a C1Sizer control). Windows Server 2008 (Server Core not supported). Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later). Requirements Target Platforms: Windows 7.

The following C1SizerLightEventArgs properties provide information specific to this event. Windows Vista SP1 or later.public event C1SizerLightEventHandler ResizingFont Event Data The event handler receives an argument of type C1SizerLightEventArgs containing data related to this event. Windows Server 2008 R2 (Server Core supported with SP1 or later). scrollable controls often don't need font resizing.Control is Button)) e. Windows Server 2008 (Server Core not supported).Cancel = true. Remarks By default. In some cases. } Requirements Target Platforms: Windows 7. the user can still scroll to view their contents. you may want to prevent the C1SizerLight from resizing the font for certain controls on the form. C1SizerLightEventArgs e) { if (!(e. Windows Server 2003 SP2 See Also Reference 128 . For example. C1SizerLight will resize all child controls on a form and will also update their fonts when the form is resized. Windows XP SP3. When their dimensions change. Control Gets a reference to the control whose font is about to be resized by the C1SizerLight component. the code below prevents the C1SizerLight from resizing the font on any controls that are not Buttons:  C# void c1SizerLight1_ResizingFont(object sender. Example For example. Property Description Cancel Determines whether the font for this control should be resized.

C1SizerLightEventArgs Requirements Target Platforms: Windows 7.Win.Win.EventArgs C# public class C1SizerLightEventArgs : System. Windows Server 2008 R2 (Server Core supported with SP1 or later).C1Sizer Namespace Overview Provides data for the C1SizerLight. Windows Server 2003 SP2 See Also Reference C1SizerLightEventArgs Members C1.EventArgs C1.ResizingFont event of a C1SizerLight component. Windows Vista SP1 or later.C1SizerLight Class C1SizerLight Members C1SizerLightEventArgs Provides data for the C1SizerLight. Windows Server 2008 (Server Core not supported). Object Model Syntax Visual Basic (Declaration) Public Class C1SizerLightEventArgs Inherits System. Windows XP SP3.Object System. Object Model 129 .C1Sizer.ResizingFont event of a C1SizerLight component.EventArgs Inheritance Hierarchy System.

Top 130 .Syntax Visual Basic (Declaration) Public Class C1SizerLightEventArgs Inherits System. Public Properties Name Description Cancel Determines whether the font for this control should be resized.Win.EventArgs C# public class C1SizerLightEventArgs : System. Windows XP SP3.C1Sizer Namespace Members Properties The following tables list the members exposed by C1SizerLightEventArgs. Windows Server 2003 SP2 See Also Reference C1SizerLightEventArgs Members C1. Control Gets a reference to the control whose font is about to be resized by the C1SizerLight component.EventArgs Inheritance Hierarchy System. Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later.C1SizerLightEventArgs Requirements Target Platforms: Windows 7.C1Sizer.Object System.EventArgs C1. Windows Server 2008 R2 (Server Core supported with SP1 or later).Win.

Control Gets a reference to the control whose font is about to be resized by the C1SizerLight component.See Also Reference C1SizerLightEventArgs Class C1. see C1SizerLightEventArgs members. Top See Also Reference C1SizerLightEventArgs Class C1.C1Sizer Namespace Cancel Property Determines whether the font for this control should be resized.Win.} Requirements 131 .Win. set.C1Sizer Namespace Properties %%scrap%% " --> For a list of all members of this type. Syntax Visual Basic (Declaration) Public Property Cancel As Boolean C# public bool Cancel {get. Public Properties Name Description Cancel Determines whether the font for this control should be resized.

} Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Windows XP SP3. Windows Vista SP1 or later. Windows Server 2003 SP2 See Also Reference C1SizerLightEventArgs Class C1SizerLightEventArgs Members Column Represents a column in the Sizer grid. Syntax Visual Basic (Declaration) Public ReadOnly Property Control As Control C# public Control Control {get. Windows Vista SP1 or later. Windows Server 2003 SP2 See Also Reference C1SizerLightEventArgs Class C1SizerLightEventArgs Members Control Property Gets a reference to the control whose font is about to be resized by the C1SizerLight component. Windows XP SP3. Object Model Syntax 132 . Windows Server 2008 (Server Core not supported).Target Platforms: Windows 7. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 R2 (Server Core supported with SP1 or later).

Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference Column Members C1.Win.Visual Basic (Declaration) Public Class Column Inherits Band C# public class Column : Band Inheritance Hierarchy System.C1Sizer.C1Sizer. Windows Server 2008 R2 (Server Core supported with SP1 or later). Object Model Syntax Visual Basic (Declaration) Public Class Column Inherits Band C# public class Column : Band 133 .C1Sizer Namespace Overview Represents a column in the Sizer grid.Column Requirements Target Platforms: Windows 7. Windows XP SP3. Windows Vista SP1 or later.Band C1.Object C1.Win.Win.

Win. Windows Server 2008 (Server Core not supported).Column Requirements Target Platforms: Windows 7. Public Properties Name Description Bounds Gets a System.Band) Index Gets the index of the Band in the owner collection.C1Sizer.Drawing. 134 .Band) IsFixedSize Determines whether the Band should retain its size when the control is resized. Windows XP SP3.C1Sizer.Win.Win.C1Sizer. (Inherited from C1.C1Sizer Namespace Members Properties Methods The following tables list the members exposed by Column.Win.Band C1. (Inherited from C1. Windows Server 2003 SP2 See Also Reference Column Members C1.C1Sizer.Win. (Inherited from C1. Windows Server 2008 R2 (Server Core supported with SP1 or later).Band) Size Overridden.Win.Win.Band) IsSplitter Determines whether the band acts like a splitter (can be resized with the mouse at run time). Windows Vista SP1 or later.C1Sizer.C1Sizer.Object C1. (Inherited from C1.Inheritance Hierarchy System.Rectangle that represents the size and location of the band within the parent C1Sizer control. Gets or sets the width of the Column in pixels.

see Column members. Syntax Visual Basic (Declaration) 135 .Win. Top See Also Reference Column Class C1. Top See Also Reference Column Class C1.Win.Top Public Methods Name Description ToString Returns a string representation of the Column object.C1Sizer Namespace ToString Method Returns a string representation of the Column object.C1Sizer Namespace Methods %%scrap%% " --> For a list of all members of this type. Public Methods Name Description ToString Returns a string representation of the Column object.

Windows Server 2008 (Server Core not supported).C1Sizer.Win. Windows Server 2003 SP2 See Also Reference Column Class Column Members Properties %%scrap%% " --> For a list of all members of this type.Public Overrides Function ToString() As String C# public override string ToString() Return Value A string representation of the Column object Requirements Target Platforms: Windows 7.Band) Index Gets the index of the Band in the owner collection. (Inherited from C1. (Inherited from C1.Win. Windows XP SP3.Band) 136 .Rectangle that represents the size and location of the band within the parent C1Sizer control.C1Sizer.C1Sizer.Win. Public Properties Name Description Bounds Gets a System. (Inherited from C1. Windows Server 2008 R2 (Server Core supported with SP1 or later). see Column members.Band) IsFixedSize Determines whether the Band should retain its size when the control is resized.Drawing. Windows Vista SP1 or later.

IsFixedSize property. Requirements Target Platforms: Windows 7. Gets or sets the width of the Column in pixels. Syntax Visual Basic (Declaration) Public Overrides Property Size As Integer C# public override int Size {get.} Remarks The Size property is updated whenever the control is resized. Top See Also Reference Column Class C1. Windows Server 2008 (Server Core not supported).Band) Size Overridden.g. (Inherited from C1. When entering row heights or column widths into the PropertyGrid.C1Sizer.Win. so that the columns take up the entire width of the control. set. Windows XP SP3. Windows Server 2003 SP2 See Also 137 .SetSizes method in the ColumnCollection class.Win. You can also set the size of multiple columns with a single call using the BandCollection. Windows Server 2008 R2 (Server Core supported with SP1 or later). You can prevent specific columns from being resized with the form by setting their Band. "25%").C1Sizer Namespace Size Property Gets or sets the width of the Column in pixels. you may also specify values as percentages of the control size (e.IsSplitter Determines whether the band acts like a splitter (can be resized with the mouse at run time). Windows Vista SP1 or later.

Object Model Syntax Visual Basic (Declaration) Public Class ColumnCollection Inherits BandCollection C# public class ColumnCollection : BandCollection Inheritance Hierarchy System.C1Sizer.BandCollection C1. Windows XP SP3.Object C1. Windows Server 2008 R2 (Server Core supported with SP1 or later).C1Sizer Namespace Overview Collection of Column objects.ColumnCollection Requirements Target Platforms: Windows 7. Windows Server 2003 SP2 See Also Reference ColumnCollection Members C1. Windows Vista SP1 or later.Win.Win. Object Model 138 . Windows Server 2008 (Server Core not supported).Win.C1Sizer.Reference Column Class Column Members ColumnCollection Collection of Column objects.

Windows Server 2003 SP2 See Also Reference ColumnCollection Members C1. Windows Vista SP1 or later.C1Sizer.Win.ColumnCollection Requirements Target Platforms: Windows 7.Object C1.C1Sizer.Win. Windows Server 2008 (Server Core not supported).BandCollection C1.Win.BandCollection) 139 . Windows XP SP3.Syntax Visual Basic (Declaration) Public Class ColumnCollection Inherits BandCollection C# public class ColumnCollection : BandCollection Inheritance Hierarchy System. (Inherited from C1. Windows Server 2008 R2 (Server Core supported with SP1 or later).Win. Public Properties Name Description Count Gets or sets the number of bands in the collection.C1Sizer Namespace Members Properties Methods The following tables list the members exposed by ColumnCollection.C1Sizer.

C1Sizer Namespace Properties %%scrap%% " --> For a list of all members of this type.BandCollection) SetSizes Sets the size of multiple bands in the collection.Win.C1Sizer.Win.Win. (Inherited from C1.C1Sizer. Public Properties Name Description Count Gets or sets the number of bands in the collection.BandCollection) Top See Also Reference ColumnCollection Class C1. (Inherited from C1. (Inherited from C1. see ColumnCollection members. Top Public Methods Name Description Insert Inserts a new Band at a specified position in the collection.C1Sizer.Item Gets the Column object at a given index in the collection.Win. (Inherited from C1. Top 140 .BandCollection) Remove Removes a Band from the collection.BandCollection) Item Gets the Column object at a given index in the collection.Win.C1Sizer.

{get. Windows Server 2008 R2 (Server Core supported with SP1 or later).Win. Windows Vista SP1 or later. Object Model 141 . Windows Server 2003 SP2 See Also Reference ColumnCollection Class ColumnCollection Members Gradient Class that implements gradient backgrounds and exposes properties that control the appearance of the gradient.See Also Reference ColumnCollection Class C1.C1Sizer Namespace Item Property Gets the Column object at a given index in the collection.} Parameters index Requirements Target Platforms: Windows 7. Windows XP SP3. Syntax Visual Basic (Declaration) Public ReadOnly Default Property Item( _ ByVal index As Integer _ ) As Column C# public Column this[ int index ]. Windows Server 2008 (Server Core not supported).

Windows Server 2008 R2 (Server Core supported with SP1 or later).Win.Syntax Visual Basic (Declaration) Public Class Gradient C# public class Gradient Inheritance Hierarchy System.C1Sizer Namespace Overview Class that implements gradient backgrounds and exposes properties that control the appearance of the gradient. Windows Vista SP1 or later.Win. Windows XP SP3. Windows Server 2008 (Server Core not supported).Object C1. Windows Server 2003 SP2 See Also Reference Gradient Members C1. Object Model Syntax Visual Basic (Declaration) Public Class Gradient C# 142 .C1Sizer.Gradient Requirements Target Platforms: Windows 7.

Windows Server 2003 SP2 See Also Reference Gradient Members C1.C1Sizer.public class Gradient Inheritance Hierarchy System. Blend Gets or sets the Blend used to paint the background gradient.Gradient Requirements Target Platforms: Windows 7.Drawing.Point that represents the center of a radial gradient background in percentage units. Top 143 . Mode Gets or sets the GradientMode used to paint the background. Windows Server 2008 R2 (Server Core supported with SP1 or later).C1Sizer Namespace Members Properties The following tables list the members exposed by Gradient. Windows Vista SP1 or later. Public Properties Name Description BackColor2 Gets or sets the secondary color used to build the background gradient. Center Gets or sets the System. Windows Server 2008 (Server Core not supported). Windows XP SP3.Win.Object C1. GammaCorrection Gets or sets whether to apply gamma correction to the background gradient.Win.

C1Sizer Namespace BackColor2 Property Gets or sets the secondary color used to build the background gradient.Point that represents the center of a radial gradient background in percentage units.See Also Reference Gradient Class C1.Win. Top See Also Reference Gradient Class C1. Center Gets or sets the System. Syntax 144 . Public Properties Name Description BackColor2 Gets or sets the secondary color used to build the background gradient. Blend Gets or sets the Blend used to paint the background gradient.C1Sizer Namespace Properties %%scrap%% " --> For a list of all members of this type. see Gradient members. GammaCorrection Gets or sets whether to apply gamma correction to the background gradient.Drawing.Win. Mode Gets or sets the GradientMode used to paint the background.

Syntax Visual Basic (Declaration) Public Property Blend As Blend C# public Blend Blend {get. Windows Server 2003 SP2 See Also Reference Gradient Class Gradient Members Blend Property Gets or sets the Blend used to paint the background gradient. set. Windows Vista SP1 or later.Visual Basic (Declaration) Public Property BackColor2 As Color C# public Color BackColor2 {get. Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 (Server Core not supported). set. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 (Server Core not supported). Windows XP SP3.} Requirements Target Platforms: Windows 7.} Requirements Target Platforms: Windows 7. Windows Server 2003 SP2 See Also Reference Gradient Class Gradient Members 145 . Windows XP SP3.

Windows XP SP3. Windows Vista SP1 or later.} Requirements Target Platforms: Windows 7.Point that represents the center of a radial gradient background in percentage units. Windows Server 2003 SP2 See Also 146 . Syntax Visual Basic (Declaration) Public Property Center As Point C# public Point Center {get. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later.Center Property Gets or sets the System. Windows XP SP3.} Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported).Drawing. Windows Server 2008 (Server Core not supported). Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2003 SP2 See Also Reference Gradient Class Gradient Members GammaCorrection Property Gets or sets whether to apply gamma correction to the background gradient. Syntax Visual Basic (Declaration) Public Property GammaCorrection As Boolean C# public bool GammaCorrection {get. set. set.

Windows XP SP3. Object Model Syntax Visual Basic (Declaration) Public Class Grid C# 147 . Windows Server 2003 SP2 See Also Reference Gradient Class Gradient Members Grid Summary description for Grid. Syntax Visual Basic (Declaration) Public Property Mode As GradientMode C# public GradientMode Mode {get.} Requirements Target Platforms: Windows 7. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later. set. Windows Server 2008 (Server Core not supported).Reference Gradient Class Gradient Members Mode Property Gets or sets the GradientMode used to paint the background.

public class Grid Inheritance Hierarchy System.Grid Requirements Target Platforms: Windows 7.Win.Object C1. Windows XP SP3. Windows Vista SP1 or later. Windows Server 2008 (Server Core not supported).Win.C1Sizer. Object Model Syntax Visual Basic (Declaration) Public Class Grid C# public class Grid Inheritance Hierarchy System.C1Sizer Namespace Overview Summary description for Grid. Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 R2 (Server Core supported with SP1 or later).Win.Grid Requirements Target Platforms: Windows 7. Windows Server 2003 SP2 See Also Reference Grid Members C1.Object C1. Windows Server 2003 SP2 148 . Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later.C1Sizer.

Top Public Methods Name Description AutoGenerate Resets the Grid object and creates new rows and columns based on the child controls within the C1Sizer. Top See Also 149 . Clear Resets the Grid object so it contains one row and one column. Public Properties Name Description Columns Gets a reference to the ColumnCollection that contains the columns in the layout grid. DraggingSplitter Rows Gets a reference to the RowCollection that contains the rows in the layout grid.C1Sizer Namespace Members Properties Methods The following tables list the members exposed by Grid. SelectedObjects Sizer Gets a reference to the C1Sizer control that owns this Grid.Win.See Also Reference Grid Members C1.

C1Sizer Namespace Methods %%scrap%% " --> For a list of all members of this type. Clear Resets the Grid object so it contains one row and one column.Reference Grid Class C1.Win. Top See Also Reference Grid Class C1. see Grid members.Win. Syntax Visual Basic (Declaration) Public Sub AutoGenerate() C# public void AutoGenerate() Remarks 150 .C1Sizer Namespace AutoGenerate Method Resets the Grid object and creates new rows and columns based on the child controls within the C1Sizer. Public Methods Name Description AutoGenerate Resets the Grid object and creates new rows and columns based on the child controls within the C1Sizer.

Windows Vista SP1 or later. Windows Server 2008 (Server Core not supported). Syntax Visual Basic (Declaration) Public Sub Clear() C# public void Clear() Requirements Target Platforms: Windows 7. Windows XP SP3. Windows Server 2003 SP2 See Also Reference Grid Class Grid Members Properties %%scrap%% " --> For a list of all members of this type. see Grid members. Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later). 151 . Windows Vista SP1 or later. It is more commonly used internally (at design time) by the grid designer. Windows Server 2008 R2 (Server Core supported with SP1 or later). Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference Grid Class Grid Members Clear Method Resets the Grid object so it contains one row and one column.You will rarely have to call this method from your code.

SelectedObjects Sizer Gets a reference to the C1Sizer control that owns this Grid.} Requirements Target Platforms: Windows 7. Windows XP SP3. Syntax Visual Basic (Declaration) Public ReadOnly Property Columns As ColumnCollection C# public ColumnCollection Columns {get. Windows Vista SP1 or later.C1Sizer Namespace Columns Property Gets a reference to the ColumnCollection that contains the columns in the layout grid. Windows Server 2008 R2 (Server Core supported with SP1 or later). Top See Also Reference Grid Class C1. Windows Server 2008 (Server Core not supported).Public Properties Name Description Columns Gets a reference to the ColumnCollection that contains the columns in the layout grid. DraggingSplitter Rows Gets a reference to the RowCollection that contains the rows in the layout grid. Windows Server 2003 SP2 152 .Win.

} Requirements 153 . Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later. Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later).See Also Reference Grid Class Grid Members DraggingSplitter Property Syntax Visual Basic (Declaration) Public ReadOnly Property DraggingSplitter As Splitter C# public Splitter DraggingSplitter {get. Windows Server 2003 SP2 See Also Reference Grid Class Grid Members Rows Property Gets a reference to the RowCollection that contains the rows in the layout grid. Syntax Visual Basic (Declaration) Public ReadOnly Property Rows As RowCollection C# public RowCollection Rows {get.} Requirements Target Platforms: Windows 7.

Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later. Windows Vista SP1 or later.} Requirements Target Platforms: Windows 7. Windows Server 2008 R2 (Server Core supported with SP1 or later). set. Windows XP SP3. Syntax Visual Basic (Declaration) Public ReadOnly Property Sizer As C1Sizer C# public C1Sizer Sizer {get. Windows Server 2008 R2 (Server Core supported with SP1 or later).Target Platforms: Windows 7. Windows Server 2003 SP2 See Also Reference Grid Class Grid Members Sizer Property Gets a reference to the C1Sizer control that owns this Grid. Windows XP SP3. Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference Grid Class Grid Members SelectedObjects Property Syntax Visual Basic (Declaration) Public Property SelectedObjects As Object() C# public object[] SelectedObjects {get.} 154 .

Win. Windows Vista SP1 or later.Win. Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later).Requirements Target Platforms: Windows 7. Windows Server 2003 SP2 See Also Reference Grid Class Grid Members Row Represents a row in the Sizer grid. Object Model Syntax Visual Basic (Declaration) Public Class Row Inherits Band C# public class Row : Band Inheritance Hierarchy System. Windows XP SP3. Windows Server 2008 (Server Core not supported).Object C1. Windows Server 2008 R2 (Server Core supported with SP1 or later).C1Sizer.C1Sizer.Row Requirements Target Platforms: Windows 7. Windows Server 2003 SP2 See Also Reference 155 . Windows XP SP3.Band C1.

Win.Win. Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference Row Members C1.Band C1.C1Sizer. Windows XP SP3.Win. Windows Server 2008 R2 (Server Core supported with SP1 or later). Object Model Syntax Visual Basic (Declaration) Public Class Row Inherits Band C# public class Row : Band Inheritance Hierarchy System.Object C1.C1Sizer Namespace Members Properties Methods The following tables list the members exposed by Row. Windows Vista SP1 or later.Row Members C1.C1Sizer Namespace Overview Represents a row in the Sizer grid.C1Sizer.Row Requirements Target Platforms: Windows 7.Win. Public Properties 156 .

Win. (Inherited from C1.Band) IsFixedSize Determines whether the Band should retain its size when the control is resized. Gets or sets the height of the Row in pixels.C1Sizer. (Inherited from C1.Drawing.Win.C1Sizer.C1Sizer Namespace Methods %%scrap%% " --> For a list of all members of this type. Top See Also Reference Row Class C1. (Inherited from C1.C1Sizer.Band) Size Overridden.Win. see Row members. Public Methods 157 .Band) Index Gets the index of the Band in the owner collection.Name Description Bounds Gets a System. (Inherited from C1.Win.Win.Band) IsSplitter Determines whether the band acts like a splitter (can be resized with the mouse at run time).C1Sizer.Rectangle that represents the size and location of the band within the parent C1Sizer control. Top Public Methods Name Description ToString Returns a string representation of the Row object.

Syntax Visual Basic (Declaration) Public Overrides Function ToString() As String C# public override string ToString() Return Value A string representation of the Row object Requirements Target Platforms: Windows 7. Windows Server 2008 R2 (Server Core supported with SP1 or later). Top See Also Reference Row Class C1. Windows Server 2003 SP2 See Also Reference Row Class Row Members Properties %%scrap%% " --> 158 . Windows Server 2008 (Server Core not supported). Windows XP SP3. Windows Vista SP1 or later.Win.Name Description ToString Returns a string representation of the Row object.C1Sizer Namespace ToString Method Returns a string representation of the Row object.

Public Properties Name Description Bounds Gets a System.Win.C1Sizer.Win.Band) Size Overridden. (Inherited from C1.C1Sizer.Win.C1Sizer. Top See Also Reference Row Class C1.Win.Band) IsSplitter Determines whether the band acts like a splitter (can be resized with the mouse at run time). Gets or sets the height of the Row in pixels. Syntax Visual Basic (Declaration) Public Overrides Property Size As Integer C# public override int Size {get. (Inherited from C1.Win.Drawing.C1Sizer. (Inherited from C1. (Inherited from C1.Band) Index Gets the index of the Band in the owner collection.} Remarks 159 .For a list of all members of this type.Band) IsFixedSize Determines whether the Band should retain its size when the control is resized. see Row members.Rectangle that represents the size and location of the band within the parent C1Sizer control. set.C1Sizer Namespace Size Property Gets or sets the height of the Row in pixels.

you may also specify values as percentages of the control size (e. Requirements Target Platforms: Windows 7. "25%").The Size property is updated whenever the control is resized.g.SetSizes method in the RowCollection class.Win. Windows Vista SP1 or later.IsFixedSize property. Windows Server 2008 (Server Core not supported). You can also set the size of multiple rows with a single call using the BandCollection. Windows XP SP3.Object C1.C1Sizer. Object Model Syntax Visual Basic (Declaration) Public Class RowCollection Inherits BandCollection C# public class RowCollection : BandCollection Inheritance Hierarchy System. Windows Server 2003 SP2 See Also Reference Row Class Row Members RowCollection Collection of Row objects.RowCollection 160 .C1Sizer.BandCollection C1.Win. When entering row heights or column widths into the PropertyGrid. You can prevent specific rows from being resized with the form by setting their Band. Windows Server 2008 R2 (Server Core supported with SP1 or later). so that the rows take up the entire height of the control.

BandCollection C1. Windows XP SP3.Win. Object Model Syntax Visual Basic (Declaration) Public Class RowCollection Inherits BandCollection C# public class RowCollection : BandCollection Inheritance Hierarchy System.C1Sizer Namespace Overview Collection of Row objects. Windows Server 2008 (Server Core not supported). Windows Server 2008 R2 (Server Core supported with SP1 or later).C1Sizer. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2003 SP2 See Also Reference RowCollection Members C1. Windows Server 2003 SP2 See Also Reference 161 .Object C1.Win. Windows XP SP3.Win. Windows Server 2008 (Server Core not supported).Requirements Target Platforms: Windows 7. Windows Vista SP1 or later.C1Sizer.RowCollection Requirements Target Platforms: Windows 7. Windows Vista SP1 or later.

(Inherited from C1.BandCollection) Top See Also Reference RowCollection Class C1.Win.RowCollection Members C1.BandCollection) Remove Removes a Band from the collection. (Inherited from C1.Win.C1Sizer Namespace Members Properties Methods The following tables list the members exposed by RowCollection. Top Public Methods Name Description Insert Inserts a new Band at a specified position in the collection. (Inherited from C1. (Inherited from C1.Win.C1Sizer.C1Sizer.C1Sizer Namespace Properties %%scrap%% 162 .Win.C1Sizer.Win.C1Sizer. Public Properties Name Description Count Gets or sets the number of bands in the collection.BandCollection) Item Gets the Row object at a given index in the collection.BandCollection) SetSizes Sets the size of multiple bands in the collection.Win.

Win. (Inherited from C1." --> For a list of all members of this type.C1Sizer Namespace Item Property Gets the Row object at a given index in the collection. see RowCollection members.C1Sizer. Public Properties Name Description Count Gets or sets the number of bands in the collection. Top See Also Reference RowCollection Class C1.Win.} Parameters index Requirements 163 . Syntax Visual Basic (Declaration) Public ReadOnly Default Property Item( _ ByVal index As Integer _ ) As Row C# public Row this[ int index ].BandCollection) Item Gets the Row object at a given index in the collection. {get.

Strings Requirements Target Platforms: Windows 7. Windows Server 2003 SP2 See Also Reference RowCollection Class RowCollection Members Strings Static class containing UI strings. Windows Vista SP1 or later. Windows XP SP3. Object Model Syntax Visual Basic (Declaration) Public MustInherit NotInheritable Class Strings C# public static class Strings Inheritance Hierarchy System.Win. Windows Vista SP1 or later.C1Sizer Namespace 164 .Target Platforms: Windows 7. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows XP SP3.Win. Windows Server 2008 R2 (Server Core supported with SP1 or later).Object C1. Windows Server 2003 SP2 See Also Reference Strings Members C1.C1Sizer. Windows Server 2008 (Server Core not supported). Windows Server 2008 (Server Core not supported).

Windows Server 2003 SP2 See Also Reference Strings Members C1.Strings Requirements Target Platforms: Windows 7.Win. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows XP SP3. Public Properties Name Description CannotInsertBand 165 . Object Model Syntax Visual Basic (Declaration) Public MustInherit NotInheritable Class Strings C# public static class Strings Inheritance Hierarchy System.Overview Static class containing UI strings. Windows Server 2008 (Server Core not supported).Win.Object C1. Windows Vista SP1 or later.C1Sizer.C1Sizer Namespace Members Properties The following tables list the members exposed by Strings.

CannotRemoveBand
Column
ConfirmClearGrid
DesignTimeMessage
ResourceManager
Row
UICulture
Top

See Also
Reference
Strings Class
C1.Win.C1Sizer Namespace

Properties
%%scrap%%
" -->
For a list of all members of this type, see Strings members.

Public Properties
Name

Description

CannotInsertBand
CannotRemoveBand
Column
ConfirmClearGrid

166

DesignTimeMessage
ResourceManager
Row
UICulture
Top

See Also
Reference
Strings Class
C1.Win.C1Sizer Namespace

CannotInsertBand Property

Syntax
Visual Basic (Declaration)
Public Shared ReadOnly Property CannotInsertBand As String
C#
public static string CannotInsertBand {get;}

Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2

See Also
Reference
Strings Class
Strings Members

CannotRemoveBand Property

Syntax

167

Visual Basic (Declaration)
Public Shared ReadOnly Property CannotRemoveBand As String
C#
public static string CannotRemoveBand {get;}

Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2

See Also
Reference
Strings Class
Strings Members

Column Property

Syntax
Visual Basic (Declaration)
Public Shared ReadOnly Property Column As String
C#
public static string Column {get;}

Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2

See Also
Reference
Strings Class
Strings Members

ConfirmClearGrid Property

Syntax
168

Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later).} Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported).} Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later. Windows Server 2003 SP2 See Also Reference Strings Class Strings Members ResourceManager Property Syntax 169 . Windows Server 2003 SP2 See Also Reference Strings Class Strings Members DesignTimeMessage Property Syntax Visual Basic (Declaration) Public Shared ReadOnly Property DesignTimeMessage As String C# public static string DesignTimeMessage {get.Visual Basic (Declaration) Public Shared ReadOnly Property ConfirmClearGrid As String C# public static string ConfirmClearGrid {get. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later. Windows XP SP3.

Windows Vista SP1 or later. Windows XP SP3. Windows Server 2008 (Server Core not supported). Windows Server 2008 (Server Core not supported).} Requirements Target Platforms: Windows 7. Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later).Visual Basic (Declaration) Public Shared Property ResourceManager As ResourceManager C# public static ResourceManager ResourceManager {get. Windows Server 2003 SP2 See Also Reference Strings Class Strings Members UICulture Property Syntax 170 . Windows Server 2003 SP2 See Also Reference Strings Class Strings Members Row Property Syntax Visual Basic (Declaration) Public Shared ReadOnly Property Row As String C# public static string Row {get. Windows Server 2008 R2 (Server Core supported with SP1 or later).} Requirements Target Platforms: Windows 7. Windows Vista SP1 or later. set.

BlendErrors Inheritance Hierarchy System.Object C1.BlendErrors C# public static class Strings.C1Sizer. Windows XP SP3.Win.BlendErrors Object Model Syntax Visual Basic (Declaration) Public MustInherit NotInheritable Class Strings. Windows Server 2003 SP2 171 .Strings. Windows Server 2003 SP2 See Also Reference Strings Class Strings Members Strings. Windows Server 2008 (Server Core not supported).} Requirements Target Platforms: Windows 7.BlendErrors Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported).Visual Basic (Declaration) Public Shared ReadOnly Property UICulture As CultureInfo C# public static CultureInfo UICulture {get. Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later.

BlendErrors Inheritance Hierarchy System.See Also Reference Strings.Object C1.C1Sizer Namespace Overview Object Model Syntax Visual Basic (Declaration) Public MustInherit NotInheritable Class Strings.Win.Strings.BlendErrors Members C1. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference Strings.C1Sizer.BlendErrors.BlendErrors Members C1.BlendErrors Requirements Target Platforms: Windows 7. Windows Vista SP1 or later.C1Sizer Namespace Members Properties The following tables list the members exposed by Strings. Windows XP SP3.Win.Win.BlendErrors C# public static class Strings. Public Properties 172 .

see Strings.BlendErrors Class C1.C1Sizer Namespace Properties %%scrap%% " --> For a list of all members of this type. Public Properties Name Description BadFormat BadPosition BadPositionOrFactor CannotParseFloats NonAscendingPositions Top 173 .BlendErrors members.Name Description BadFormat BadPosition BadPositionOrFactor CannotParseFloats NonAscendingPositions Top See Also Reference Strings.Win.

} Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later. Windows Server 2003 SP2 174 . Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later.C1Sizer Namespace BadFormat Property Syntax Visual Basic (Declaration) Public Shared ReadOnly Property BadFormat As String C# public static string BadFormat {get. Windows Server 2008 (Server Core not supported). Windows XP SP3.BlendErrors Class Strings.Win. Windows XP SP3.BlendErrors Members BadPosition Property Syntax Visual Basic (Declaration) Public Shared ReadOnly Property BadPosition As String C# public static string BadPosition {get.See Also Reference Strings.BlendErrors Class C1.} Requirements Target Platforms: Windows 7. Windows Server 2003 SP2 See Also Reference Strings. Windows Server 2008 R2 (Server Core supported with SP1 or later).

Windows XP SP3. Windows Server 2008 (Server Core not supported).} Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference Strings. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2003 SP2 175 . Windows Vista SP1 or later.BlendErrors Class Strings.See Also Reference Strings. Windows Server 2008 R2 (Server Core supported with SP1 or later).BlendErrors Class Strings.BlendErrors Members CannotParseFloats Property Syntax Visual Basic (Declaration) Public Shared ReadOnly Property CannotParseFloats As String C# public static string CannotParseFloats {get.BlendErrors Members BadPositionOrFactor Property Syntax Visual Basic (Declaration) Public Shared ReadOnly Property BadPositionOrFactor As String C# public static string BadPositionOrFactor {get. Windows Vista SP1 or later.} Requirements Target Platforms: Windows 7. Windows XP SP3.

} Requirements Target Platforms: Windows 7.Enum C# 176 . Syntax Visual Basic (Declaration) Public Enum AutoSizeEnum Inherits System.BlendErrors Class Strings.BlendErrors Class Strings. Windows Vista SP1 or later.See Also Reference Strings. Windows Server 2008 (Server Core not supported).BlendErrors Members NonAscendingPositions Property Syntax Visual Basic (Declaration) Public Shared ReadOnly Property NonAscendingPositions As String C# public static string NonAscendingPositions {get. Windows Server 2003 SP2 See Also Reference Strings. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows XP SP3.BlendErrors Members Enumerations AutoSizeEnum Represents the possible sizing modes.

Windows XP SP3.Enum C# public enum GradientMode : System.Enum C1.C1Sizer.Object System. None No resizing. Windows Vista SP1 or later. Syntax Visual Basic (Declaration) Public Enum GradientMode Inherits System.ValueType System. Windows Server 2003 SP2 See Also Reference C1.Win. Windows Server 2008 R2 (Server Core supported with SP1 or later).Enum Members Member Description Grid Size child controls to snap to the sizer's Grid.public enum AutoSizeEnum : System.AutoSizeEnum Requirements Target Platforms: Windows 7.Win. Windows Server 2008 (Server Core not supported).C1Sizer Namespace GradientMode Specifies the background gradient mode. Inheritance Hierarchy System.Enum Members 177 .

Win. Horizontal Horizontal gradient (from BackColor on the left to BackColor2 on the right).Member Description DiagonalDown Diagonal gradient (from BackColor on the left-top to BackColor2 on the right-bottom).Win. Syntax Visual Basic (Declaration) 178 .GradientMode Requirements Target Platforms: Windows 7.ValueType System.Object System. Vertical Vertical gradient (from BackColor on the top to BackColor2 on the bottom). Windows XP SP3. None No gradient.C1Sizer Namespace ImageAlignment Specifies the image alignment. Windows Server 2008 (Server Core not supported). Radial Radial gradient (from BackColor on the edges to BackColor2 on the center). Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later). DiagonalUp Diagonal gradient (from BackColor on the left-bottom to BackColor2 on the right-top).Enum C1.C1Sizer. Windows Server 2003 SP2 See Also Reference C1. Inheritance Hierarchy System.

CenterTop Image is vertically aligned at the top and horizontally aligned at the center. RightTop Image is vertically aligned at the top and horizontally aligned on the right.Enum Members Member Description CenterBottom Image is vertically aligned at the bottom and horizontally aligned at the center.Object System. CenterCenter Image is vertically aligned in the middle and horizontally aligned at the center.C1Sizer.Public Enum ImageAlignment Inherits System.ValueType System. LeftTop Image is vertically aligned at the top and horizontally aligned on the left.Enum C# public enum ImageAlignment : System.ImageAlignment Requirements 179 .Enum C1. LeftCenter Image is vertically aligned in the middle and horizontally aligned on the left. RightBottom Image is vertically aligned at the bottom and horizontally aligned on the right. Inheritance Hierarchy System. LeftBottom Image is vertically aligned at the bottom and horizontally aligned on the left.Win. RightCenter Image is vertically aligned in the middle and horizontally aligned on the right.

clipping it to the display area if necessary. Windows Server 2008 (Server Core not supported). TileStretch Tile the image into a 3x3 matrix and stretch it to fill the display area. This mode may increase or reduce the size of the image while maintaining its aspect ratio.Enum C# public enum ImageScaling : System. This mode will usually change the image's aspect ratio. This mode preserves the size of the four corners of the image.Enum Members Member Description Clip Use the image's original size. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows XP SP3.C1Sizer Namespace ImageScaling Specifies the image scaling. Windows Vista SP1 or later. Hide Hide the image. Syntax Visual Basic (Declaration) Public Enum ImageScaling Inherits System. Tile Tile the image to fill the display area. Scale Scale the image to fit the display area. Windows Server 2003 SP2 See Also Reference C1.Target Platforms: Windows 7. Stretch Stretch the image to fill the display area. 180 .Win.

Inheritance Hierarchy System. Windows Server 2008 R2 (Server Core supported with SP1 or later).ValueType System. Windows Server 2003 SP2 See Also Reference C1. This mode preserves the size of the top and bottom parts of the image.Win.C1Sizer. This mode preserves the size of the left and right parts of the image.ImageScaling Requirements Target Platforms: Windows 7.Object System. Windows Server 2008 (Server Core not supported). Windows XP SP3.C1Sizer Namespace Structures Corners Represents corners associated with a user interface (UI) element. TileStretchVertical Tile the image into a column of 3 images and stretch it to fill the display area. Windows Vista SP1 or later.Win. Object Model Syntax Visual Basic (Declaration) Public Structure Corners Inherits System.ValueType 181 .TileStretchHorizontal Tile the image into a row of 3 images and stretch it to fill the display area.Enum C1.

Win. Object Model Syntax Visual Basic (Declaration) Public Structure Corners Inherits System.ValueType Inheritance Hierarchy System.C# public struct Corners : System.ValueType C# public struct Corners : System.C1Sizer.C1Sizer Namespace Overview Represents corners associated with a user interface (UI) element.ValueType C1.Win.Win. Windows Vista SP1 or later.Object System. Windows Server 2008 (Server Core not supported).Corners 182 .C1Sizer.ValueType C1. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2003 SP2 See Also Reference Corners Members C1.ValueType Inheritance Hierarchy System.Object System.Corners Requirements Target Platforms: Windows 7. Windows XP SP3.

Win. Windows Server 2008 R2 (Server Core supported with SP1 or later). IsEmpty Returns true if the Corners object is empty. LeftTop Gets or sets the radius for the left top corner. LeftBottom Gets or sets the radius for the left bottom corner. Top Public Properties Name Description Empty Provides a Corners object with no thickness.C1Sizer Namespace Members Properties Methods The following tables list the members exposed by Corners. Windows Server 2003 SP2 See Also Reference Corners Members C1. Top 183 . Public Constructors Name Description Corners Constructor Overloaded. Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later.Requirements Target Platforms: Windows 7. RightBottom Gets or sets the radius for the right bottom corner. Windows XP SP3. RightTop Gets or sets the radius for the right top corner.

Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported).Int32.Int32) Initializes a new instance of a Corners object. Windows Server 2003 SP2 184 . Corners Constructor(Int32) Initializes a new instance of a Corners object. Windows XP SP3.Int32.C1Sizer Namespace Corners Constructor Overload List Overload Description Corners Constructor(Int32.Win. Top Public Operators Equality Tests whether two specified Corners objects are equivalent. Implicit Type Conversion Inequality Tests whether two specified Corners objects are not equivalent. Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later). GetHashCode Generates a hash code for the current Corners. Top See Also Reference Corners Structure C1.Public Methods Name Description Equals Determines whether the value of the specified object is equivalent to the current Corners.

Initializes a new instance of a Corners object. int rightBottom ) Parameters leftTop Radius of the left top corner.Int32) Radius of the left top corner. in pixels. leftBottom 185 . in pixels.Int32. in pixels. in pixels. rightTop Radius of the right top corner. _ ByVal rightTop As Integer. Radius of the left bottom corner.See Also Reference Corners Structure Corners Members Corners Constructor(Int32. in pixels. _ ByVal leftBottom As Integer. Radius of the right bottom corner. int leftBottom. int rightTop.Int32. in pixels. _ ByVal rightBottom As Integer _ ) C# public Corners( int leftTop. Syntax Visual Basic (Declaration) Public Function New( _ ByVal leftTop As Integer. Radius of the right top corner.

Windows Server 2008 R2 (Server Core supported with SP1 or later). rightBottom Radius of the right bottom corner. Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). in pixels. Windows XP SP3. Windows Vista SP1 or later. Initializes a new instance of a Corners object.Radius of the left bottom corner. in pixels. in pixels. Syntax Visual Basic (Declaration) Public Function New( _ ByVal radius As Integer _ ) C# public Corners( int radius ) Parameters radius Radius of all corners. in pixels. Requirements 186 . Windows Server 2003 SP2 See Also Reference Corners Structure Corners Members Overload List Corners Constructor(Int32) Radius of all corners.

Top See Also Reference Corners Structure C1.C1Sizer Namespace Equals Method The object to compare to the current Corners. Public Methods Name Description Equals Determines whether the value of the specified object is equivalent to the current Corners. Determines whether the value of the specified object is equivalent to the current Corners. Syntax Visual Basic (Declaration) 187 . Windows Server 2003 SP2 See Also Reference Corners Structure Corners Members Overload List Methods %%scrap%% " --> For a list of all members of this type. see Corners members. GetHashCode Generates a hash code for the current Corners. Windows XP SP3. Windows Server 2008 (Server Core not supported).Win. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later.Target Platforms: Windows 7.

Return Value true if the two Corners objects are equal.Public Overrides Function Equals( _ ByVal obj As Object _ ) As Boolean C# public override bool Equals( object obj ) Parameters obj The object to compare to the current Corners. Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference Corners Structure Corners Members GetHashCode Method Generates a hash code for the current Corners. otherwise. 188 . Requirements Target Platforms: Windows 7. Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later). false. Syntax Visual Basic (Declaration) Public Overrides Function GetHashCode() As Integer C# public override int GetHashCode() Return Value A 32-bit signed integer hash code. Windows Vista SP1 or later.

LeftTop Gets or sets the radius for the left top corner. see Corners members.C1Sizer Namespace 189 . Windows Server 2008 R2 (Server Core supported with SP1 or later). Top See Also Reference Corners Structure C1. Windows Server 2008 (Server Core not supported). LeftBottom Gets or sets the radius for the left bottom corner. IsEmpty Returns true if the Corners object is empty. Public Properties Name Description Empty Provides a Corners object with no thickness. RightBottom Gets or sets the radius for the right bottom corner. Windows XP SP3.Win. RightTop Gets or sets the radius for the right top corner. Windows Server 2003 SP2 See Also Reference Corners Structure Corners Members Properties %%scrap%% " --> For a list of all members of this type.Requirements Target Platforms: Windows 7. Windows Vista SP1 or later.

Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows XP SP3.} Requirements Target Platforms: Windows 7.Empty Property Provides a Corners object with no thickness. Windows Server 2008 (Server Core not supported). Windows Vista SP1 or later. Syntax Visual Basic (Declaration) Public Shared ReadOnly Property Empty As Corners C# public static Corners Empty {get. Windows Server 2008 (Server Core not supported). Windows Server 2003 SP2 See Also Reference Corners Structure Corners Members IsEmpty Property Returns true if the Corners object is empty. Syntax Visual Basic (Declaration) Public ReadOnly Property IsEmpty As Boolean C# public bool IsEmpty {get. Windows Server 2003 SP2 See Also 190 . Windows Vista SP1 or later. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows XP SP3.} Requirements Target Platforms: Windows 7.

Windows Server 2003 SP2 See Also Reference Corners Structure Corners Members LeftTop Property Gets or sets the radius for the left top corner. Windows Server 2008 (Server Core not supported). set. set.} Requirements Target Platforms: Windows 7.} Requirements 191 . Syntax Visual Basic (Declaration) Public Property LeftBottom As Integer C# public int LeftBottom {get. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows XP SP3. Windows Vista SP1 or later. Syntax Visual Basic (Declaration) Public Property LeftTop As Integer C# public int LeftTop {get.Reference Corners Structure Corners Members LeftBottom Property Gets or sets the radius for the left bottom corner.

Windows Server 2003 SP2 See Also Reference Corners Structure Corners Members RightBottom Property Gets or sets the radius for the right bottom corner. Syntax Visual Basic (Declaration) Public Property RightBottom As Integer C# public int RightBottom {get.} Requirements Target Platforms: Windows 7. set. Windows Server 2008 (Server Core not supported).Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows XP SP3. Syntax Visual Basic (Declaration) Public Property RightTop As Integer 192 . Windows XP SP3. Windows Server 2003 SP2 See Also Reference Corners Structure Corners Members RightTop Property Gets or sets the radius for the right top corner. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later. Windows Vista SP1 or later.

Windows XP SP3. _ ByVal c2 As Corners _ ) As Boolean C# public bool operator ==( Corners c1. Windows Server 2008 R2 (Server Core supported with SP1 or later). set. Corners c2 ) Parameters c1 A Corners to test. Windows Server 2003 SP2 See Also Reference Corners Structure Corners Members Operators Equality Operator A Corners to test.C# public int RightTop {get. A Corners to test. Syntax Visual Basic (Declaration) Public Operator =( _ ByVal c1 As Corners. Windows Vista SP1 or later. Tests whether two specified Corners objects are equivalent.} Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). 193 .

c2 A Corners to test. Windows Vista SP1 or later. otherwise. false. Windows Server 2008 (Server Core not supported). Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2003 SP2 See Also Reference Corners Structure Corners Members Implicit Type Conversion Operator Syntax Visual Basic (Declaration) Public Operator Widening CType( _ ByVal radii As Integer _ ) As Corners C# public Corners operator implicit( int radii ) Parameters radii Requirements Target Platforms: Windows 7. Windows Server 2003 SP2 See Also 194 . Windows XP SP3. Windows Vista SP1 or later. Return Value true if the two Corners objects are equal. Windows Server 2008 R2 (Server Core supported with SP1 or later). Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported).

Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Server 2003 SP2 See Also 195 . Corners c2 ) Parameters c1 A Corners to test. Windows Server 2008 (Server Core not supported). Windows XP SP3. A Corners to test. Requirements Target Platforms: Windows 7. Syntax Visual Basic (Declaration) Public Operator <>( _ ByVal c1 As Corners. false. c2 A Corners to test. Windows Vista SP1 or later. _ ByVal c2 As Corners _ ) As Boolean C# public bool operator !=( Corners c1. Return Value True if the two Corners objects are different. Tests whether two specified Corners objects are not equivalent. otherwise.Reference Corners Structure Corners Members Inequality Operator A Corners to test.

C1Sizer Namespace 196 . Windows Server 2008 (Server Core not supported). Windows XP SP3.SplitterMoved events of a C1Sizer control. Windows Server 2008 R2 (Server Core supported with SP1 or later). _ ByVal e As C1SizerEventArgs _ ) C# public delegate void C1SizerEventHandler( object sender.Reference Corners Structure Corners Members Delegates C1SizerEventHandler Represents the methods that will handle the C1Sizer.SplitterMoving and C1Sizer. C1SizerEventArgs e ) Parameters sender e Requirements Target Platforms: Windows 7. Windows Vista SP1 or later. Windows Server 2003 SP2 See Also Reference C1SizerEventHandler Members C1. Syntax Visual Basic (Declaration) Public Delegate Sub C1SizerEventHandler( _ ByVal sender As Object.Win.

C1SizerLightEventHandler Represents the method that will handle the C1SizerLight. _ ByVal e As C1SizerLightEventArgs _ ) C# public delegate void C1SizerLightEventHandler( object sender.Win.C1Sizer Namespace 197 . C1SizerLightEventArgs e ) Parameters sender e Requirements Target Platforms: Windows 7. Windows Server 2008 (Server Core not supported). Syntax Visual Basic (Declaration) Public Delegate Sub C1SizerLightEventHandler( _ ByVal sender As Object.ResizingFont and C1SizerLight. Windows Server 2003 SP2 See Also Reference C1SizerLightEventHandler Members C1. Windows XP SP3. Windows Server 2008 R2 (Server Core supported with SP1 or later). Windows Vista SP1 or later.ResizingControl events of a C1SizerLight component.