WinForms Sizer
WinForms Sizer
WinForms Sizer
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. ComponentOnes 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.
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
See Also
Help with WinForms Edition
Migrating a C1Sizer Project to Visual Studio 2005
See Also
Migrating a C1Sizer Project to Visual Studio 2005
2.
Locate the .sln file for the project that you wish to convert to Visual Studio 2005. Select
it and click Open. The Visual Studio Conversion Wizard appears.
3.
4.
Click Next.
Select Yes, create a backup before converting to create a backup of your current
project and click Next.
5.
Click Finish to convert your project to Visual Studio 2005. The Conversion Complete
window appears.
6.
Click Show the conversion log when the wizard is closed if you want to view the
conversion log.
7.
Click Close. The project opens. Now you must remove references to any of the previous
ComponentOne .dlls and add references to the new ones.
Go to the Solution Explorer (View | Solution Explorer), select the project, and click the
Show All Files button.
8.
Note: The Show All Files button does not appear in the Solution Explorer toolbar if the
Solution project node is selected.
9.
10
10.
11.
12.
13.
14. Click OK to permanently delete licenses.licx. The project must be rebuilt to create a
new, updated version of the .licx file.
15. Click the Start Debugging button to compile and run the project. The new .licx file may
not be visible in the Solution Explorer.
16. Select File | Close to close the form and then double-click the Form.vb or Form.cs file
in the Solution Explorer to reopen it. The new licenses.licx file appears in the list of
11
files.
See Also
Key Features
Key Features
Sizer for WinForms includes the following features:
12
See Also
Design-Time Support
Design-Time Support
C1Sizer provides customized context menus, smart tags, and a designer that offers rich designtime support and simplifies working with the object model.
The following sections describe how to use C1Sizer's design-time environment to configure
C1Sizer's controls/components.
See Also
C1Sizer Smart Tag
C1SizerLight Smart Tag
C1Sizer Context Menus
C1Sizer Grid Editor
C1Sizer Gradient Editor
13
About C1Sizer
Clicking on the About item displays the About C1Sizer dialog box, which is helpful in finding
the version number of C1Sizer and online resources.
Edit Gradient
Clicking on the Edit Gradient item opens the C1Sizer Grid Editor. For more information about
the C1Sizer Gradient Editor's elements, see C1Sizer Gradient Editor.
Edit Grid
Clicking on the Edit Grid item opens the C1Sizer Grid Editor. For more information about the
C1Sizer Grid Editor's elements, see 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.
Clear Grid
Clicking on the Clear Grid item removes the bands from the grid.
See Also
C1SizerLight Smart Tag
14
To access the C1SizerLight Tasks menu, click on the smart tag ( ) in the upper right corner of
the C1SizerLight component. This will open the C1SizerLight Tasks menu.
About C1Sizer
Clicking on the About item displays the About C1Sizer dialog box, which is helpful in finding
the version number of C1Sizer and online resources.
See Also
C1Sizer Context Menus
Description
About
Displays the About C1Sizer dialog box, which is helpful in finding the version
C1Sizer
Edit Grid
Clears all unused bands in the grid that don't have any controls attached to
them.
Clear Grid
15
The following table provides a brief description of the custom commands added by
C1SizerLight:
Commands
Description
About
Displays the About C1Sizer dialog box, which is helpful in finding the version
C1Sizer
See Also
C1Sizer Grid Editor
16
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. Click the Rows tab to create or modify the bands in the Rows of the
grid.
Command Buttons
The following command buttons are available in both tabs:
Command
Description
Insert
Add
Delete
Even
Clear
17
Auto
OK
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.
IsSplitter
Determines whether the band acts like a splitter (can be resized with the mouse at
run time). The default value is False.
Size
See Also
C1Sizer Gradient Editor
18
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.
The Gradient group consists of the following properties:
Property
Description
C1Sizer.BackColor
Gradient.BackColor2
GradientMode
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.
19
See Also
Using the C1SizerLight Component
See Also
Quick Start Tutorial
Now run the project and resize the form. If you make it smaller, parts of the controls will be
clipped.
20
You could improve the controls' appearance on the form using the Dock and Align properties
on the controls, 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, depending on
your monitor's resolution, the fonts may appear very small when you enlarge the form.
Instead of making the form size fixed and giving up the resize feature, add a C1SizerLight
component to the form. C1SizerLight is a non-visual component, so it will appear in the tray
area below the form.
21
You do not have to set any properties or write any code, just run the project again and resize
the form. All contained controls will automatically resize and the form will retain its aspect:
Resizing Fonts
Notice that when you resized the form, the fonts in the button controls were resized to
accommodate the new size. This is the default behavior provided by C1SizerLight.In some cases,
you may want to prevent that and keep all the original font sizes. You can do this using the
C1SizerLight.ResizeFonts property. Set C1SizerLight.ResizeFonts to False and the fonts will not
resize.
To set the C1SizerLight.ResizeFonts to False at design-time use the following steps:
22
1.
2.
You may also want to prevent font resizing in specific controls. For example, it would probably
be a good idea to keep the font size constant for the list control on our sample form, and
update the fonts on the buttons only. (In general, controls that can scroll their contents do not
need the font resizing feature). To do this, you need to handle the C1SizerLight.ResizingFont
event and cancel it for some controls. For example, 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
Copy Code
23
C1.Win.C1Sizer.C1SizerLightEventArgs e)
{
if (!(e.Control is Button))
e.Cancel = true;
}
If you run the project again, you will notice that the ListBox control retains the original font
when the form is resized.
MDI Forms
C1SizerLight also works with MDI child forms. Simply add a C1SizerLight component to each
child form and they will be resized proportionally, just like any regular form.
See Also
Using the C1Sizer Control
24
allows you to define a grid made up of bands, then add controls that snap to these bands.
When the C1Sizer control is resized, the bands are automatically recalculated, and contained
controls move automatically to their new positions. 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.
Think of C1Sizer as a piece of graph paper. Each component will occupy one or more of the
little boxes on the paper. This is similar to tables in word processors such as Microsoft Word,
where you can merge adjacent cells, and to Java's Grid Bag Layout, which works in a similar way.
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. For more information how to set up the
grid before you create the child controls, see Tutorial 1: Set up the grid, then add the controls
or how to set up the grid after you create the controls, see Tutorial 2: Add the controls, then set
up the grid.
The following table lists the controls that require an additional property other than the
Band.Bounds property:
Control
Property Setting
TextBox
The TextBox control allows you to set its height only if MultiLine = True. Otherwise
the height is set automatically based on the Font.
ComboBox The ComboBox control allows you to set its height only if DrawMode =
OwnerDraw.
ListBox
The ListBox control allows you to set its height (exactly) only if IntegralHeight =
False.
The next section includes two tutorials that that illustrate some of the main features in the
C1Sizer control. The tutorials walk you through the creation of several simple projects,
describing each step in detail. The distribution CD contains more sophisticated samples that can
be used as a reference.
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. It shows how to set up the grid by inserting columns and rows, adding labels
and data entry controls to the grid, cleaning up unused bands, setting up the splitters,
and creating fix-sized bands.
Tutorial This tutorial also provides an introduction to the typical usage of the C1Sizer control.
25
It shows how to add the controls and then set up the grid.
See Also
Tutorial 1: Set up the grid, then add the controls
Tutorial 2: Add the controls, then set up the grid
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. At this point,
the C1Sizer does not have a grid layout set up yet, or any child controls, so it will
display a message with brief instructions on how to use the control, but this can be
ignored for now.
Now, right-click the C1Sizer control and select the Edit Grid option from the menu.
This will bring up the C1Sizer Grid Editor dialog box so you can set up the grid layout.
26
3.
Position the editor next to the grid so you can see the effect of the changes on the
control. Next, click the Insert button until the grid has eight rows. Then, click the
Columns tab and click Insert again until the grid has eight columns. This is what the
control will look like at design time:
27
the grid layout. You can resize any control and make it span any number of rows and
columns.
4.
To follow the tutorial, add eight text boxes and eight label controls, and arrange them
so the form looks like the following:
Note: Remember to set the MultiLine property of the textbox controls to True, or they will
not resize vertically. Also, when you place a text box control on the form it automatically
expands to three columns.
5.
Select the cursor over the second column and drag it to the left so there is enough
space for the labels, then select the cursor over each row and drag it upward to make
the height of each row smaller. The following picture illustrates this effect:
28
6.
Change each label's AutoSize property to False, then change each label's TextAlign
property to TopRight. The labels will appear like the following:
If you think the controls are too close to each other or too far apart, change the
C1Sizer.SplitterWidth and C1Sizer.BorderWidth properties to achieve the effect you
want.
If you run the project now, you will see that when you resize the form, the text boxes
and labels are automatically resized.
29
The C1Sizer grid appears like the following image at design time.
30
Setting up a splitter
Each band (row or column) on the grid can be configured to act as a splitter. For example, if you
wanted to allow users to control the size of the label area on the left, you would bring up the
grid editor, select the first column and set the Band.IsSplitter property to True, as shown below:
Note: A splitter can also be added by right-clicking the band and selecting Splitter from
the context menu.
31
Notice the dark gray bar to the right of the first column. This indicates that the user will be able
to drag that splitter at run time, automatically resizing the labels and text boxes on the first two
columns of the grid.
Note: A fixed-sized band can also be configured by right-clicking the band and selecting
Fixed Size from the context menu.
Click the OK button. The C1Sizer appears with red markers on the first six rows. This indicates
that those rows will not be resized with the form (the last two will).
32
This concludes Tutorial 1. The following tutorial provides more detail about adding controls to
the form and setting up the C1Sizer grid.
See Also
Tutorial 2: Add the controls, then set up the grid
33
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
See Also
Sizer for WinForms Samples
36
Documents\ComponentOne Samples\WinForms
The following examples are included for the C1Sizer control:
Description
SizerTutorial1 Demonstrates how to set up the grid and add controls. This sample uses the
C1Sizer control.
SizerTutorial2 Demonstrates how to add controls and set up the grid. This sample uses the
C1Sizer control.
C# Samples
C1Sizer includes the following C# samples:
Sample
Description
AddControls
Shows how to add child controls to a C1Sizer using code. This sample uses the
C1Sizer control.
CustomSplitters Use the OnPaint event to customize the appearance of the splitter bars. This
sample uses the C1Sizer control.
FakeOutlook
Create a user interface that looks like OutlookExpress. This sample uses the
C1Sizer control.
FakeStudio
Create a user interface that looks like Visual Studio. This sample uses the
C1Sizer control.
37
FindCell
Shows how to determine which cell is at a given point. This sample uses the
C1Sizer control.
FindControl
Shows how to determine which control is at a given grid cell. This sample uses
the C1Sizer control.
Light_MDI
Use the C1SizerLight with MDI forms. This sample uses the C1SizerLight
component.
Light_Nested
Use C1SizerLight in forms with docked and nested controls. This sample uses
the C1SizerLight component.
Light_Runtime
Control the C1SizerLight at run time. This sample uses the C1SizerLight
component.
Light_Toolbar
Automatically resize controls with a wrapping toolbar. 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.
RowHeaders
Demonstrates how to combine the .NET Dock property and panel controls to
provide areas with headers. This sample uses the C1Sizer control.
SizerDesigner
Shows how to display the C1Sizer grid and implement the drag-and-drop
operations between grid cells. This sample uses the C1Sizer control.
See Also
Sizer for WinForms Task-Based Help
38
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
Copy Code
Copy Code
if (this.components == null)
this.components = new System.ComponentModel.Container();
C1SizerLight szl = new C1SizerLight(components);
szl.SetAutoResize(this, true);
To programmatically create a generic form start-up procedure which every form will call, use
the following code:
To write code in Visual Basic
Visual Basic
Copy Code
39
Copy Code
See Also
Position Controls on the C1Sizer Grid at Run Time
To use the Band.Bounds property to determine the position of a grid cell, and the
Control.Bounds property to move the control, use the following code:
To write code in Visual Basic
Visual Basic
Copy Code
40
Copy Code
41
c1Sizer1.Grid.Rows[row].Bounds,
c1Sizer1.Grid.Columns[col].Bounds);
}
See Also
Create a Three Dimensional Border for the Rows and Columns
Add the C1Sizer control to your form and set its Dock property to DockStyle.Fill so it
takes up the whole form.
Add some controls to C1Sizer's panel, for example two button controls.
Right-click the panel and select Auto Grid to create and activate the grid layout.
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
Copy Code
42
See Also
Store Layout Information for the C1Sizer Control
Copy Code
43
Copy Code
string _gridDefinition;
ArrayList _ctlPositions;
private void btnSaveGrid_Click(object sender, System.EventArgs e)
{
// Save grid definition
_gridDefinition = c1Sizer1.GridDefinition;
// Save control positions
_ctlPositions = new ArrayList();
foreach (Control ctl in c1Sizer1.Controls)
{
_ctlPositions.Add(ctl.Bounds);
}
}
private void btnRestoreGrid_Click(object sender, System.EventArgs e)
{
if (_gridDefinition != null)
{
// Restore grid definition
c1Sizer1.GridDefinition = _gridDefinition;
// Restore control positions
for (int i = 0; i < c1Sizer1.Controls.Count; i++)
44
{
c1Sizer1.Controls[i].Bounds =
(Rectangle)_ctlPositions[i];
}
}
}
API Reference
The following topics contain the API reference for Sizer for WinForms.
See Also
C1.Win.C1Sizer.4 Assembly
C1.Win.C1Sizer.4 Assembly
Namespaces
C1.Win.C1Sizer Namespace
Overview
Classes
Class
Description
Band
Abstract class that serves as a base for the Row and Column classes.
BandCollection
Border
C1Sizer
45
C1SizerLight
ColumnCollection
Gradient
Grid
Row
RowCollection
Strings
Strings.BlendErrors
Structures
Structure
Description
Corners
Delegates
Delegate
Description
46
C1SizerEventHandler
Enumerations
Enumeration
Description
AutoSizeEnum
GradientMode
See Also
Reference
C1.Win.C1Sizer.4 Assembly
Classes
Band
Abstract class that serves as a base for the Row and Column classes.
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit Class Band
47
C#
public abstract class Band
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Band
C1.Win.C1Sizer.Column
C1.Win.C1Sizer.Row
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
Band Members
C1.Win.C1Sizer Namespace
Overview
Abstract class that serves as a base for the Row and Column classes.
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit Class Band
C#
public abstract class Band
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Band
48
C1.Win.C1Sizer.Column
C1.Win.C1Sizer.Row
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
Band Members
C1.Win.C1Sizer Namespace
Members
Properties
Public Properties
Name
Description
Bounds
Index
IsFixedSize
Determines whether the Band should retain its size when the control is
resized.
IsSplitter
Determines whether the band acts like a splitter (can be resized with the
mouse at run time).
Size
Top
See Also
Reference
49
Band Class
C1.Win.C1Sizer Namespace
Properties
%%scrap%%
" -->
For a list of all members of this type, see Band members.
Public Properties
Name
Description
Bounds
Index
IsFixedSize
Determines whether the Band should retain its size when the control is
resized.
IsSplitter
Determines whether the band acts like a splitter (can be resized with the
mouse at run time).
Size
Top
See Also
Reference
Band Class
C1.Win.C1Sizer Namespace
Bounds Property
Gets a System.Drawing.Rectangle that represents the size and location of the band within the
parent C1Sizer control.
Syntax
Visual Basic (Declaration)
50
Remarks
You can use the Bounds property to determine the position of specific grid cells. For example,
the code below moves a button control into cell 1,1 of the layout grid: Rectangle bounds =
Rectangle.Intersect(g.Rows[1].Bounds, g.Columns[1].Bounds);
button1.Bounds = bounds;
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
Band Class
Band Members
Index Property
Gets the index of the Band in the owner collection.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Index As Integer
C#
public int Index {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
51
Band Class
Band Members
IsFixedSize Property
Determines whether the Band should retain its size when the control is resized.
Syntax
Visual Basic (Declaration)
Public Property IsFixedSize As Boolean
C#
public bool IsFixedSize {get; set;}
Remarks
When the control is resized, it updates the layout grid so it always fills the control's client area.
Normally, this is done by scaling every band and keeping their proportion constant.
In some cases, however, you may want to keep the size of a band constant, and let the other
bands shrink or expand to accommodate the new control dimensions. For example, you may
have a row that contains constant-size headings, and should not be resized with the control. In
these cases, set the IsFixedSize property to true and the band will not be resized when the
control dimensions change.
The IsFixedSize property prevents the control from resizing the band when the control is
resized. It does not prevent the user from resizing the band with the mouse if the IsSplitter
property is set to true.
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
Band Class
Band Members
IsSplitter Property
Determines whether the band acts like a splitter (can be resized with the mouse at run time).
52
Syntax
Visual Basic (Declaration)
Public Property IsSplitter As Boolean
C#
public bool IsSplitter {get; set;}
Remarks
The IsSplitter property controls the splitter bar below each row and to the right of each column.
IsSplitter has no effect on the last band in a collection, because the last band always ends at the
edge of the control and thus cannot be resized with the mouse.
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
Band Class
Band Members
Size Property
Gets or sets the size of this Band object.
Syntax
Visual Basic (Declaration)
Public MustOverride Property Size As Integer
C#
public abstract int Size {get; set;}
Remarks
If the Band is a Row object, the size represents the row height in pixels.
If the Band is a Column object, the size represents the column width in pixels.
53
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
Band Class
Band Members
BandCollection
Abstract class that serves as a base for the RowCollection and ColumnCollection classes.
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit Class BandCollection
C#
public abstract class BandCollection
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.BandCollection
C1.Win.C1Sizer.ColumnCollection
C1.Win.C1Sizer.RowCollection
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
54
BandCollection Members
C1.Win.C1Sizer Namespace
Overview
Abstract class that serves as a base for the RowCollection and ColumnCollection classes.
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit Class BandCollection
C#
public abstract class BandCollection
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.BandCollection
C1.Win.C1Sizer.ColumnCollection
C1.Win.C1Sizer.RowCollection
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
BandCollection Members
C1.Win.C1Sizer Namespace
Members
Properties Methods
Public Properties
55
Name
Description
Count
Top
Public Methods
Name
Description
Insert
Remove
SetSizes
Top
See Also
Reference
BandCollection Class
C1.Win.C1Sizer Namespace
Methods
%%scrap%%
" -->
For a list of all members of this type, see BandCollection members.
Public Methods
Name
Description
Insert
Remove
SetSizes
Top
56
See Also
Reference
BandCollection Class
C1.Win.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.
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
BandCollection Class
BandCollection Members
Remove Method
Index of the band that will be removed from the collection.
57
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.
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
BandCollection Class
BandCollection Members
SetSizes Method
A vector containing the new sizes for each band in the collection.
Sets the size of multiple bands in the collection.
Syntax
Visual Basic (Declaration)
Public Sub SetSizes( _
ByVal sizes() As Integer _
)
58
C#
public void SetSizes(
int[] sizes
)
Parameters
sizes
A vector containing the new sizes for each band in the collection.
Remarks
You can set the size of a Band object by setting its Band.Size property. However, this will
cause other bands to resize immediately, so the collection always fills the client area of the
C1Sizer control.
This method allows you to set the size of multiple bands simultaneously, with a single call.
Any negative dimensions in the sizes array will be ignored, and the corresponding bands
will retain their current dimension.
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
BandCollection Class
BandCollection Members
Properties
%%scrap%%
" -->
For a list of all members of this type, see BandCollection members.
Public Properties
Name
Description
59
Count
Top
See Also
Reference
BandCollection Class
C1.Win.C1Sizer Namespace
Count Property
Gets or sets the number of bands in the collection.
Syntax
Visual Basic (Declaration)
Public Property Count As Integer
C#
public int Count {get; set;}
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
BandCollection Class
BandCollection Members
Border
Class that implements rounded borders and exposes properties that control the appearance of
the border.
Object Model
Syntax
60
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Border
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
Border Members
C1.Win.C1Sizer Namespace
Overview
Class that implements rounded borders and exposes properties that control the appearance of
the border.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Border
C#
public class Border
Inheritance Hierarchy
61
System.Object
C1.Win.C1Sizer.Border
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
Border Members
C1.Win.C1Sizer Namespace
Members
Properties
Public Properties
Name
Description
Color
Gets or sets the Color used to draw the border around the control.
Corners
Thickness
Top
See Also
Reference
Border Class
C1.Win.C1Sizer Namespace
Properties
%%scrap%%
" -->
For a list of all members of this type, see Border members.
62
Public Properties
Name
Description
Color
Gets or sets the Color used to draw the border around the control.
Corners
Thickness
Top
See Also
Reference
Border Class
C1.Win.C1Sizer Namespace
Color Property
Gets or sets the Color used to draw the border around the control.
Syntax
Visual Basic (Declaration)
Public Property Color As Color
C#
public Color Color {get; set;}
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
Border Class
Border Members
63
Corners Property
Gets or sets the radii of the control corners.
Syntax
Visual Basic (Declaration)
Public Property Corners As Corners
C#
public Corners Corners {get; set;}
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
Border Class
Border Members
Thickness Property
Gets or sets the thickness of the border around the control.
Syntax
Visual Basic (Declaration)
Public Property Thickness As Padding
C#
public Padding Thickness {get; set;}
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
64
Reference
Border Class
Border Members
C1Sizer
A container control with a powerful grid layout manager that extends the basic layout
capabilities provided by the .NET framework (Dock and Anchor properties).
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1Sizer
Inherits System.Windows.Forms.Control
C#
public class C1Sizer : System.Windows.Forms.Control
Remarks
The C1Sizer control allows you to define a grid made up of bands, then add controls that snap
to these bands. When the C1Sizer control is resized, the bands are automatically recalculated,
and contained controls move automatically to their new positions.
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. In most
applications, you will follow these steps:
1) Add one or more C1Sizer controls to the form, and set their Dock property to fill the form,
2) Use the Grid Editor to set up a grid layout at design time, and add controls which will snap to
the grid.
You can use the Grid Editor to set the number and dimension of the grid's bands (rows and
columns), and also to specify which bands should act as splitters, and which should have fixed
dimensions.
Inheritance Hierarchy
65
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
C1.Win.C1Sizer.C1Sizer
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
C1Sizer Members
C1.Win.C1Sizer Namespace
Overview
A container control with a powerful grid layout manager that extends the basic layout
capabilities provided by the .NET framework (Dock and Anchor properties).
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1Sizer
Inherits System.Windows.Forms.Control
C#
public class C1Sizer : System.Windows.Forms.Control
Remarks
The C1Sizer control allows you to define a grid made up of bands, then add controls that snap
to these bands. When the C1Sizer control is resized, the bands are automatically recalculated,
and contained controls move automatically to their new positions.
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.
66
You will rarely have to write any code in order to use the C1Sizer component. In most
applications, you will follow these steps:
1) Add one or more C1Sizer controls to the form, and set their Dock property to fill the form,
2) Use the Grid Editor to set up a grid layout at design time, and add controls which will snap to
the grid.
You can use the Grid Editor to set the number and dimension of the grid's bands (rows and
columns), and also to specify which bands should act as splitters, and which should have fixed
dimensions.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
C1.Win.C1Sizer.C1Sizer
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
C1Sizer Members
C1.Win.C1Sizer Namespace
Members
Properties Methods Events
Public Constructors
Name
Description
Public Properties
67
Name
Description
AccessibilityObject
AccessibleName
AccessibleRole
AllowDrop
Anchor
AutoScrollOffset
AutoSizeMode
BackColor
BackgroundImage
BackgroundImageLayout
BindingContext
Border
Bottom
Bounds
CanFocus
68
CanSelect
Capture
CausesValidation
ClientRectangle
ClientSize
CompanyName
Container
ContainsFocus
ContextMenu
ContextMenuStrip
Controls
Created
Cursor
DataBindings
DisplayRectangle
Disposing
Dock
Enabled
Focused
69
Gradient
Grid
Handle
HasChildren
Height
Image
ImageAlignment
ImageScaling
ImeMode
InvokeRequired
IsAccessible
IsDisposed
IsHandleCreated
IsMirrored
LayoutEngine
Left
Location
Margin
70
MaximumSize
MinimumSize
Name
Padding
Parent
PreferredSize
ProductName
ProductVersion
RecreatingHandle
Region
Right
RightToLeft
Site
Size
SplitterWidth
TabIndex
TabStop
Tag
71
Text
Top
TopLevelControl
UseWaitCursor
Visible
Width
Top
Public Methods
Name
Description
AddControl
BeginInvoke
BringToFront
Contains
CreateControl
CreateGraphics
CreateObjRef
Dispose
DoDragDrop
DrawToBitmap
72
EndInvoke
FindForm
Focus
GetCellAtPoint
GetCellBounds
GetChildAtPoint
GetContainerControl
GetControlAtCell
GetLifetimeService
GetNextControl
GetPreferredSize
Hide
InitializeLifetimeService
Invalidate
Invoke
PerformLayout
PointToClient
PointToScreen
73
PreProcessMessage
RectangleToClient
RectangleToScreen
Refresh
ResetText
ResumeLayout
Scale
Select
SelectNextControl
SendToBack
SetBounds
Show
SuspendLayout
ToString
Update
Top
Public Events
Name
Description
BackColorChanged
BackgroundImageChanged
74
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
Disposed
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
75
Enter
FontChanged
ForeColorChanged
GiveFeedback
GotFocus
HandleCreated
HandleDestroyed
HelpRequested
ImeModeChanged
Invalidated
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
LostFocus
MarginChanged
MouseCaptureChanged
76
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
MouseWheel
Move
PaddingChanged
Paint
ParentChanged
PreviewKeyDown
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
Resize
RightToLeftChanged
77
SizeChanged
SplitterMoved
SplitterMoving
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextChanged
Validated
Validating
VisibleChanged
Top
See Also
Reference
C1Sizer Class
C1.Win.C1Sizer Namespace
C1Sizer Constructor
Initializes a new instance of the C1Sizer control.
Syntax
Visual Basic (Declaration)
Public Function New()
78
C#
public C1Sizer()
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
C1Sizer Class
C1Sizer Members
Methods
%%scrap%%
" -->
For a list of all members of this type, see C1Sizer members.
Public Methods
Name
Description
AddControl
BeginInvoke
BringToFront
Contains
CreateControl
CreateGraphics
CreateObjRef
79
Dispose
DoDragDrop
DrawToBitmap
EndInvoke
FindForm
Focus
GetCellAtPoint
GetCellBounds
GetChildAtPoint
GetContainerControl
GetControlAtCell
GetLifetimeService
GetNextControl
GetPreferredSize
Hide
InitializeLifetimeService
Invalidate
Invoke
PerformLayout
80
PointToClient
PointToScreen
RectangleToClient
RectangleToScreen
Refresh
ResetText
ResumeLayout
Scale
Select
SelectNextControl
SendToBack
SetBounds
Show
SuspendLayout
ToString
Update
Top
See Also
81
Reference
C1Sizer Class
C1.Win.C1Sizer Namespace
AddControl Method
Adds a child control to the C1Sizer and positions it at a given cell on the grid.
Overload List
Overload
Description
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
C1Sizer Class
C1Sizer Members
AddControl(Control,Int32,Int32,Int32,Int32) Method
Child System.Windows.Forms.Control to add.
Index of the row where the child control will be positioned.
Index of the column where the child control will be positioned.
Number of rows the child control should span.
Number of columns the child control should span.
Adds a child control to the C1Sizer and positions it at a given cell on the grid.
Syntax
82
Parameters
ctl
Child System.Windows.Forms.Control to add.
row
Index of the row where the child control will be positioned.
col
Index of the column where the child control will be positioned.
rowSpan
Number of rows the child control should span.
colSpan
Number of columns the child control should span.
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
83
See Also
Reference
C1Sizer Class
C1Sizer Members
Overload List
AddControl(Control,Int32,Int32) Method
Child System.Windows.Forms.Control to add.
Index of the row where the child control will be positioned.
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.
Syntax
Visual Basic (Declaration)
Public Overloads Sub AddControl( _
ByVal ctl As Control, _
ByVal row As Integer, _
ByVal col As Integer _
)
C#
public void AddControl(
Control ctl,
int row,
int col
)
Parameters
ctl
Child System.Windows.Forms.Control to add.
row
Index of the row where the child control will be positioned.
col
Index of the column where the child control will be positioned.
84
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
C1Sizer Class
C1Sizer Members
Overload List
GetCellAtPoint Method
Gets the cell at a given point on the control's client area.
Overload List
Overload
Description
GetCellAtPoint(Point)
GetCellAtPoint(Int32,Int32) Gets the cell at a given point on the control's client area.
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
C1Sizer Class
C1Sizer Members
GetCellAtPoint(Point) Method
System.Drawing.Point that specifies the cell position.
Gets the cell at a given point on the control's client area.
Syntax
85
Parameters
pt
System.Drawing.Point that specifies the cell position.
Return Value
A System.Drawing.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 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
C1Sizer Class
C1Sizer Members
Overload List
GetCellAtPoint(Int32,Int32) Method
X coordinate of the point.
Y coordinate of the point.
Gets the cell at a given point on the control's client area.
Syntax
Visual Basic (Declaration)
86
Parameters
x
X coordinate of the point.
y
Y coordinate of the point.
Return Value
A System.Drawing.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 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
C1Sizer Class
C1Sizer Members
Overload List
GetCellBounds Method
Gets the bounds of a cell range within the grid.
Overload List
Overload
Description
87
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
C1Sizer Class
C1Sizer Members
GetCellBounds(Int32,Int32,Int32,Int32) Method
Index of the first row in the range.
Index of the first column in the range.
Number or rows in the range.
Number or columns in the range.
Gets the bounds of a cell range within the grid.
Syntax
Visual Basic (Declaration)
Public Overloads Function GetCellBounds( _
ByVal row As Integer, _
ByVal col As Integer, _
ByVal rowSpan As Integer, _
ByVal colSpan As Integer _
) As Rectangle
C#
public Rectangle GetCellBounds(
int row,
int col,
int rowSpan,
int colSpan
88
Parameters
row
Index of the first row in the range.
col
Index of the first column in the range.
rowSpan
Number or rows in the range.
colSpan
Number or columns in the range.
Return Value
A System.Drawing.Rectangle that contains the bounds of the cell range.
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
C1Sizer Class
C1Sizer Members
Overload List
GetCellBounds(Int32,Int32) Method
Index of the row that contains the cell.
Index of the column that contains the cell.
Gets the bounds of a cell within the grid.
Syntax
Visual Basic (Declaration)
89
Parameters
row
Index of the row that contains the cell.
col
Index of the column that contains the cell.
Return Value
A System.Drawing.Rectangle that contains the bounds of the cell.
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
C1Sizer Class
C1Sizer Members
Overload List
GetControlAtCell Method
Index of the row that contains the cell.
Index of the column that contains the cell.
Gets the first control at a given grid cell.
Syntax
90
Parameters
row
Index of the row that contains the cell.
col
Index of the column that contains the cell.
Return Value
The first control at the cell, or null if the cell is empty.
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
C1Sizer Class
C1Sizer Members
ResumeLayout Method
Resumes normal layout logic.
Overload List
Overload
Description
91
ResumeLayout()
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
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, 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
C1Sizer Class
C1Sizer Members
Overload List
92
ResumeLayout(Boolean) Method
True to execute pending layout requests; otherwise, False.
Resumes normal layout logic. Optionally forces an immediate layout of pending layout requests.
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; otherwise, False.
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
C1Sizer Class
C1Sizer Members
Overload List
SuspendLayout Method
Temporarily suspends the layout logic for the control.
Syntax
Visual Basic (Declaration)
Public Shadows Sub SuspendLayout()
93
C#
public new void SuspendLayout()
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
C1Sizer Class
C1Sizer Members
Properties
%%scrap%%
" -->
For a list of all members of this type, see C1Sizer members.
Public Properties
Name
Description
AccessibilityObject
AccessibleName
AccessibleRole
AllowDrop
Anchor
AutoScrollOffset
94
AutoSizeMode
BackColor
BackgroundImage
BackgroundImageLayout
BindingContext
Border
Bottom
Bounds
CanFocus
CanSelect
Capture
CausesValidation
ClientRectangle
ClientSize
CompanyName
Container
ContainsFocus
ContextMenu
95
ContextMenuStrip
Controls
Created
Cursor
DataBindings
DisplayRectangle
Disposing
Dock
Enabled
Focused
Gradient
Grid
Handle
HasChildren
Height
Image
ImageAlignment
ImageScaling
96
ImeMode
InvokeRequired
IsAccessible
IsDisposed
IsHandleCreated
IsMirrored
LayoutEngine
Left
Location
Margin
MaximumSize
MinimumSize
Name
Padding
Parent
PreferredSize
ProductName
ProductVersion
RecreatingHandle
97
Region
Right
RightToLeft
Site
Size
SplitterWidth
TabIndex
TabStop
Tag
Text
Top
TopLevelControl
UseWaitCursor
Visible
Width
Top
See Also
Reference
C1Sizer Class
C1.Win.C1Sizer Namespace
98
AutoSizeMode Property
Gets or sets the layout mode for the C1Sizer control.
Syntax
Visual Basic (Declaration)
Public Property AutoSizeMode As AutoSizeEnum
C#
public AutoSizeEnum AutoSizeMode {get; set;}
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
C1Sizer Class
C1Sizer Members
BackColor Property
Gets or sets the System.Drawing.Color used to paint the background.
Syntax
Visual Basic (Declaration)
Public Shadows Property BackColor As Color
C#
public new Color BackColor {get; set;}
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
99
Reference
C1Sizer Class
C1Sizer Members
Border Property
Gets the Border object that controls border thickness, color, and corner radii.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Border As Border
C#
public Border Border {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
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; set;}
Requirements
100
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
C1Sizer Class
C1Sizer Members
Gradient Property
Gets the Gradient object that controls gradient color, mode, blend, and gamma correction.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Gradient As Gradient
C#
public Gradient Gradient {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
C1Sizer Class
C1Sizer Members
Grid Property
Returns a reference to a Grid object that contains the layout information for the C1Sizer control.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Grid As Grid
101
C#
public Grid Grid {get;}
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.
All controls contained in a C1Sizer control are attached to specific bands in the Grid object.
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
C1Sizer Class
C1Sizer Members
Image Property
Gets or sets the image displayed in the control.
Syntax
Visual Basic (Declaration)
Public Property Image As Image
C#
public Image Image {get; set;}
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
102
C1Sizer Class
C1Sizer Members
ImageAlignment Property
Gets or sets the alignment used to render the image.
Syntax
Visual Basic (Declaration)
Public Property ImageAlignment As ImageAlignment
C#
public ImageAlignment ImageAlignment {get; set;}
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
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; set;}
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
103
See Also
Reference
C1Sizer Class
C1Sizer Members
Padding Property
Gets or sets the padding between the control border and its content.
Syntax
Visual Basic (Declaration)
Public Shadows Property Padding As Padding
C#
public new Padding Padding {get; set;}
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
C1Sizer Class
C1Sizer Members
SplitterWidth Property
Gets or sets the width of the area between grid bands, in pixels.
Syntax
Visual Basic (Declaration)
Public Property SplitterWidth As Integer
C#
public int SplitterWidth {get; set;}
Remarks
104
The splitter width determines the area between adjacent controls contained in the C1Sizer
control.
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
C1Sizer Class
C1Sizer Members
Events
%%scrap%%
" -->
For a list of all members of this type, see C1Sizer members.
Public Events
Name
Description
BackColorChanged
BackgroundImageChanged
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
105
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
Disposed
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
FontChanged
ForeColorChanged
GiveFeedback
GotFocus
HandleCreated
106
HandleDestroyed
HelpRequested
ImeModeChanged
Invalidated
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
LostFocus
MarginChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
107
MouseMove
MouseUp
MouseWheel
Move
PaddingChanged
Paint
ParentChanged
PreviewKeyDown
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
Resize
RightToLeftChanged
SizeChanged
SplitterMoved
SplitterMoving
StyleChanged
SystemColorsChanged
108
TabIndexChanged
TabStopChanged
TextChanged
Validated
Validating
VisibleChanged
Top
See Also
Reference
C1Sizer Class
C1.Win.C1Sizer Namespace
SplitterMoved Event
Fired when the user finishes resizing a band (row or column) by dragging a splitter bar.
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. The following C1SizerEventArgs properties provide information specific to this
event.
Property
Description
Band
Gets a reference to the band (row or column) that caused the event.
109
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
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.
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. The following C1SizerEventArgs properties provide information specific to this
event.
Property
Description
Band
Gets a reference to the band (row or column) that caused the event.
110
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
C1Sizer Class
C1Sizer Members
C1SizerEventArgs
Provides data for the C1Sizer.SplitterMoving and C1Sizer.SplitterMoved events of a C1Sizer
control.
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1SizerEventArgs
Inherits System.EventArgs
C#
public class C1SizerEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1Sizer.C1SizerEventArgs
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
111
Reference
C1SizerEventArgs Members
C1.Win.C1Sizer Namespace
Overview
Provides data for the C1Sizer.SplitterMoving and C1Sizer.SplitterMoved events of a C1Sizer
control.
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1SizerEventArgs
Inherits System.EventArgs
C#
public class C1SizerEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1Sizer.C1SizerEventArgs
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
C1SizerEventArgs Members
C1.Win.C1Sizer Namespace
Members
Properties
112
Public Properties
Name
Description
Band
Gets a reference to the band (row or column) that caused the event.
Top
See Also
Reference
C1SizerEventArgs Class
C1.Win.C1Sizer Namespace
Properties
%%scrap%%
" -->
For a list of all members of this type, see C1SizerEventArgs members.
Public Properties
Name
Description
Band
Gets a reference to the band (row or column) that caused the event.
Top
See Also
Reference
C1SizerEventArgs Class
C1.Win.C1Sizer Namespace
113
Band Property
Gets a reference to the band (row or column) that caused the event.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Band As Band
C#
public Band Band {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
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;}
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
114
Reference
C1SizerEventArgs Class
C1SizerEventArgs Members
Y Property
Gets the X coordinate of the mouse when the event is fired.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Y As Integer
C#
public int Y {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
C1SizerEventArgs Class
C1SizerEventArgs Members
C1SizerLight
Component that resizes all controls on a form when the form is resized.
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1SizerLight
Inherits System.ComponentModel.Component
115
C#
public class C1SizerLight : System.ComponentModel.Component
Remarks
When you add a C1SizerLight component to a form, it keeps track of the forms' size and
position. When the form is resized, C1SizerLight resizes all contained controls proportionally, so
the form retains its appearance at any resolution.
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. In most
applications, you will simply design forms as usual, then add a C1SizerLight component to the
form and let it resize all controls on the form automatically, when the form is resized.
In some cases, you may want to control how fonts are resized when the form dimensions
change. You can prevent all font resizing by setting the ResizeFonts property to false. Or you
can keep the font size constant for certain controls by handling the ResizingFont event.
Note that the C1SizerLight component does not work at design time. This allows you to resize
your form without affecting the layout of the controls on the form.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
C1.Win.C1Sizer.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 Members
C1.Win.C1Sizer Namespace
Overview
Component that resizes all controls on a form when the form is resized.
Object Model
116
Syntax
Visual Basic (Declaration)
Public Class C1SizerLight
Inherits System.ComponentModel.Component
C#
public class C1SizerLight : System.ComponentModel.Component
Remarks
When you add a C1SizerLight component to a form, it keeps track of the forms' size and
position. When the form is resized, C1SizerLight resizes all contained controls proportionally, so
the form retains its appearance at any resolution.
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. In most
applications, you will simply design forms as usual, then add a C1SizerLight component to the
form and let it resize all controls on the form automatically, when the form is resized.
In some cases, you may want to control how fonts are resized when the form dimensions
change. You can prevent all font resizing by setting the ResizeFonts property to false. Or you
can keep the font size constant for certain controls by handling the ResizingFont event.
Note that the C1SizerLight component does not work at design time. This allows you to resize
your form without affecting the layout of the controls on the form.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
C1.Win.C1Sizer.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
117
Reference
C1SizerLight Members
C1.Win.C1Sizer Namespace
Members
Properties Methods Events
Public Constructors
Name
Description
Public Properties
Name
Description
Container
Enabled
ResizeFonts
Site
Top
Public Methods
Name
Description
CreateObjRef
Dispose()
118
GetAutoResize
GetLifetimeService
ToString
Top
Public Events
Name
Description
Disposed
ResizingControl Fires before the C1SizerLight resizes a control in response to the form
being resized.
ResizingFont
Top
See Also
Reference
C1SizerLight Class
C1.Win.C1Sizer Namespace
C1SizerLight Constructor
Overload List
Overload
Description
119
C1SizerLight Constructor()
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
Dispose()
GetAutoResize
GetLifetimeService
ToString
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
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
SetAutoResize Method
For internal use.
Syntax
Visual Basic (Declaration)
Public Sub SetAutoResize( _
ByVal frm As Form, _
ByVal value As Boolean _
)
C#
public void SetAutoResize(
Form frm,
bool value
)
Parameters
frm
value
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
123
C1SizerLight Class
C1SizerLight Members
Properties
%%scrap%%
" -->
For a list of all members of this type, see C1SizerLight members.
Public Properties
Name
Description
Container
Enabled
ResizeFonts
Site
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
Remarks
This property has no effect at design time. Child controls are automatically resized at run time
only.
If you need to create controls at run time, you should set the Enabled property to false, create
the controls, then set it back to true. This will allow C1SizerLight to update its internal layout
information.
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
ResizeFonts Property
Determines whether the C1SizerLight should resize control fonts in addition to the controls
themselves.
Syntax
Visual Basic (Declaration)
Public Property ResizeFonts As Boolean
C#
public bool ResizeFonts {get; set;}
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
125
C1SizerLight Class
C1SizerLight Members
Events
%%scrap%%
" -->
For a list of all members of this type, see C1SizerLight members.
Public Events
Name
Description
Disposed
ResizingControl Fires before the C1SizerLight resizes a control in response to the form
being resized.
ResizingFont
Top
See Also
Reference
C1SizerLight Class
C1.Win.C1Sizer Namespace
ResizingControl Event
Fires before the C1SizerLight resizes a control in response to the form being resized.
Syntax
Visual Basic (Declaration)
Public Event ResizingControl As C1SizerLightEventHandler
C#
public event C1SizerLightEventHandler ResizingControl
Event Data
126
The event handler receives an argument of type C1SizerLightEventArgs containing data related
to this event. The following C1SizerLightEventArgs properties provide information specific to
this event.
Property
Description
Cancel
Control
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).
In some cases, you may want to prevent the C1SizerLight from resizing certain controls on the
form. For example, you may have a an event handler that takes care of resizing specific controls
on the form using specialized logic.
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
ResizingFont Event
Example
Fires before the C1SizerLight resizes the font in a control in response to the form being resized.
Syntax
Visual Basic (Declaration)
Public Event ResizingFont As C1SizerLightEventHandler
C#
127
Event Data
The event handler receives an argument of type C1SizerLightEventArgs containing data related
to this event. The following C1SizerLightEventArgs properties provide information specific to
this event.
Property
Description
Cancel
Control
Remarks
By default, C1SizerLight will resize all child controls on a form and will also update their fonts
when the form is resized.
In some cases, you may want to prevent the C1SizerLight from resizing the font for certain
controls on the form. For example, scrollable controls often don't need font resizing. When their
dimensions change, the user can still scroll to view their contents.
Example
For example, the code below prevents the C1SizerLight from resizing the font on any controls
that are not Buttons:
C#
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
128
C1SizerLight Class
C1SizerLight Members
C1SizerLightEventArgs
Provides data for the C1SizerLight.ResizingFont event of a C1SizerLight component.
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1SizerLightEventArgs
Inherits System.EventArgs
C#
public class C1SizerLightEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1Sizer.C1SizerLightEventArgs
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
C1SizerLightEventArgs Members
C1.Win.C1Sizer Namespace
Overview
Provides data for the C1SizerLight.ResizingFont event of a C1SizerLight component.
Object Model
129
Syntax
Visual Basic (Declaration)
Public Class C1SizerLightEventArgs
Inherits System.EventArgs
C#
public class C1SizerLightEventArgs : System.EventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
C1.Win.C1Sizer.C1SizerLightEventArgs
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
C1SizerLightEventArgs Members
C1.Win.C1Sizer Namespace
Members
Properties
Public Properties
Name
Description
Cancel
Control
Top
130
See Also
Reference
C1SizerLightEventArgs Class
C1.Win.C1Sizer Namespace
Properties
%%scrap%%
" -->
For a list of all members of this type, see C1SizerLightEventArgs members.
Public Properties
Name
Description
Cancel
Control
Top
See Also
Reference
C1SizerLightEventArgs Class
C1.Win.C1Sizer Namespace
Cancel Property
Determines whether the font for this control should be resized.
Syntax
Visual Basic (Declaration)
Public Property Cancel As Boolean
C#
public bool Cancel {get; set;}
Requirements
131
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
C1SizerLightEventArgs Class
C1SizerLightEventArgs Members
Control Property
Gets a reference to the control whose font is about to be resized by the C1SizerLight
component.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Control As Control
C#
public Control Control {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
C1SizerLightEventArgs Class
C1SizerLightEventArgs Members
Column
Represents a column in the Sizer grid.
Object Model
Syntax
132
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Band
C1.Win.C1Sizer.Column
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
Column Members
C1.Win.C1Sizer Namespace
Overview
Represents a column in the Sizer grid.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Column
Inherits Band
C#
public class Column : Band
133
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Band
C1.Win.C1Sizer.Column
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
Column Members
C1.Win.C1Sizer Namespace
Members
Properties Methods
Public Properties
Name
Description
Bounds
Index
Gets the index of the Band in the owner collection. (Inherited from
C1.Win.C1Sizer.Band)
IsFixedSize
Determines whether the Band should retain its size when the control is
resized. (Inherited from C1.Win.C1Sizer.Band)
IsSplitter
Determines whether the band acts like a splitter (can be resized with the
mouse at run time). (Inherited from C1.Win.C1Sizer.Band)
Size
134
Top
Public Methods
Name
Description
ToString
Top
See Also
Reference
Column Class
C1.Win.C1Sizer Namespace
Methods
%%scrap%%
" -->
For a list of all members of this type, see Column members.
Public Methods
Name
Description
ToString
Top
See Also
Reference
Column Class
C1.Win.C1Sizer Namespace
ToString Method
Returns a string representation of the Column object.
Syntax
Visual Basic (Declaration)
135
Return Value
A string representation of the Column object
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
Column Class
Column Members
Properties
%%scrap%%
" -->
For a list of all members of this type, see Column members.
Public Properties
Name
Description
Bounds
Index
Gets the index of the Band in the owner collection. (Inherited from
C1.Win.C1Sizer.Band)
IsFixedSize
Determines whether the Band should retain its size when the control is
resized. (Inherited from C1.Win.C1Sizer.Band)
136
IsSplitter
Determines whether the band acts like a splitter (can be resized with the
mouse at run time). (Inherited from C1.Win.C1Sizer.Band)
Size
Top
See Also
Reference
Column Class
C1.Win.C1Sizer Namespace
Size Property
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; set;}
Remarks
The Size property is updated whenever the control is resized, so that the columns take up the
entire width of the control.
You can prevent specific columns from being resized with the form by setting their
Band.IsFixedSize property. You can also set the size of multiple columns with a single call using
the BandCollection.SetSizes method in the ColumnCollection class.
When entering row heights or column widths into the PropertyGrid, you may also specify values
as percentages of the control size (e.g. "25%").
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
137
Reference
Column Class
Column Members
ColumnCollection
Collection of Column objects.
Object Model
Syntax
Visual Basic (Declaration)
Public Class ColumnCollection
Inherits BandCollection
C#
public class ColumnCollection : BandCollection
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.BandCollection
C1.Win.C1Sizer.ColumnCollection
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
ColumnCollection Members
C1.Win.C1Sizer Namespace
Overview
Collection of Column objects.
Object Model
138
Syntax
Visual Basic (Declaration)
Public Class ColumnCollection
Inherits BandCollection
C#
public class ColumnCollection : BandCollection
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.BandCollection
C1.Win.C1Sizer.ColumnCollection
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
ColumnCollection Members
C1.Win.C1Sizer Namespace
Members
Properties Methods
Public Properties
Name
Description
Count
139
Item
Top
Public Methods
Name
Description
Insert
Remove
SetSizes
Top
See Also
Reference
ColumnCollection Class
C1.Win.C1Sizer Namespace
Properties
%%scrap%%
" -->
For a list of all members of this type, see ColumnCollection members.
Public Properties
Name
Description
Count
Item
Top
140
See Also
Reference
ColumnCollection Class
C1.Win.C1Sizer Namespace
Item Property
Gets the Column object at a given index in the collection.
Syntax
Visual Basic (Declaration)
Public ReadOnly Default Property Item( _
ByVal index As Integer _
) As Column
C#
public Column this[
int index
]; {get;}
Parameters
index
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
ColumnCollection Class
ColumnCollection Members
Gradient
Class that implements gradient backgrounds and exposes properties that control the
appearance of the gradient.
Object Model
141
Syntax
Visual Basic (Declaration)
Public Class Gradient
C#
public class Gradient
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Gradient
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
Gradient Members
C1.Win.C1Sizer Namespace
Overview
Class that implements gradient backgrounds and exposes properties that control the
appearance of the gradient.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Gradient
C#
142
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Gradient
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
Gradient Members
C1.Win.C1Sizer Namespace
Members
Properties
Public Properties
Name
Description
BackColor2
Blend
Center
Top
143
See Also
Reference
Gradient Class
C1.Win.C1Sizer Namespace
Properties
%%scrap%%
" -->
For a list of all members of this type, see Gradient members.
Public Properties
Name
Description
BackColor2
Blend
Center
Top
See Also
Reference
Gradient Class
C1.Win.C1Sizer Namespace
BackColor2 Property
Gets or sets the secondary color used to build the background gradient.
Syntax
144
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
Gradient Class
Gradient Members
Blend Property
Gets or sets the Blend used to paint the background gradient.
Syntax
Visual Basic (Declaration)
Public Property Blend As Blend
C#
public Blend Blend {get; set;}
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
Gradient Class
Gradient Members
145
Center Property
Gets or sets the System.Drawing.Point that represents the center of a radial gradient
background in percentage units.
Syntax
Visual Basic (Declaration)
Public Property Center As Point
C#
public Point Center {get; set;}
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
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;}
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
146
Reference
Gradient Class
Gradient Members
Mode Property
Gets or sets the GradientMode used to paint the background.
Syntax
Visual Basic (Declaration)
Public Property Mode As GradientMode
C#
public GradientMode Mode {get; set;}
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
Gradient Class
Gradient Members
Grid
Summary description for Grid.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Grid
C#
147
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Grid
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
Grid Members
C1.Win.C1Sizer Namespace
Overview
Summary description for Grid.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Grid
C#
public class Grid
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Grid
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
148
See Also
Reference
Grid Members
C1.Win.C1Sizer Namespace
Members
Properties Methods
Public Properties
Name
Description
Columns
DraggingSplitter
Rows
Gets a reference to the RowCollection that contains the rows in the layout
grid.
SelectedObjects
Sizer
Top
Public Methods
Name
Description
AutoGenerate
Resets the Grid object and creates new rows and columns based on the
child controls within the C1Sizer.
Clear
Resets the Grid object so it contains one row and one column.
Top
See Also
149
Reference
Grid Class
C1.Win.C1Sizer Namespace
Methods
%%scrap%%
" -->
For a list of all members of this type, see Grid members.
Public Methods
Name
Description
AutoGenerate
Resets the Grid object and creates new rows and columns based on the
child controls within the C1Sizer.
Clear
Resets the Grid object so it contains one row and one column.
Top
See Also
Reference
Grid Class
C1.Win.C1Sizer Namespace
AutoGenerate Method
Resets the Grid object and creates new rows and columns based on the child controls within the
C1Sizer.
Syntax
Visual Basic (Declaration)
Public Sub AutoGenerate()
C#
public void AutoGenerate()
Remarks
150
You will rarely have to call this method from your code. It is more commonly used internally (at
design time) by the grid designer.
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
Grid Class
Grid Members
Clear Method
Resets the Grid object so it contains one row and one column.
Syntax
Visual Basic (Declaration)
Public Sub Clear()
C#
public void Clear()
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
Grid Class
Grid Members
Properties
%%scrap%%
" -->
For a list of all members of this type, see Grid members.
151
Public Properties
Name
Description
Columns
DraggingSplitter
Rows
Gets a reference to the RowCollection that contains the rows in the layout
grid.
SelectedObjects
Sizer
Top
See Also
Reference
Grid Class
C1.Win.C1Sizer Namespace
Columns Property
Gets a reference to the ColumnCollection that contains the columns in the layout grid.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Columns As ColumnCollection
C#
public ColumnCollection Columns {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
152
See Also
Reference
Grid Class
Grid Members
DraggingSplitter Property
Syntax
Visual Basic (Declaration)
Public ReadOnly Property DraggingSplitter As Splitter
C#
public Splitter DraggingSplitter {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
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
153
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
Grid Class
Grid Members
SelectedObjects Property
Syntax
Visual Basic (Declaration)
Public Property SelectedObjects As Object()
C#
public object[] SelectedObjects {get; set;}
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
Grid Class
Grid Members
Sizer Property
Gets a reference to the C1Sizer control that owns this Grid.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Sizer As C1Sizer
C#
public C1Sizer Sizer {get;}
154
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
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.Object
C1.Win.C1Sizer.Band
C1.Win.C1Sizer.Row
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
155
Row Members
C1.Win.C1Sizer Namespace
Overview
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.Object
C1.Win.C1Sizer.Band
C1.Win.C1Sizer.Row
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
Row Members
C1.Win.C1Sizer Namespace
Members
Properties Methods
Public Properties
156
Name
Description
Bounds
Index
Gets the index of the Band in the owner collection. (Inherited from
C1.Win.C1Sizer.Band)
IsFixedSize
Determines whether the Band should retain its size when the control is
resized. (Inherited from C1.Win.C1Sizer.Band)
IsSplitter
Determines whether the band acts like a splitter (can be resized with the
mouse at run time). (Inherited from C1.Win.C1Sizer.Band)
Size
Top
Public Methods
Name
Description
ToString
Top
See Also
Reference
Row Class
C1.Win.C1Sizer Namespace
Methods
%%scrap%%
" -->
For a list of all members of this type, see Row members.
Public Methods
157
Name
Description
ToString
Top
See Also
Reference
Row Class
C1.Win.C1Sizer Namespace
ToString Method
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 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
Row Class
Row Members
Properties
%%scrap%%
" -->
158
Public Properties
Name
Description
Bounds
Index
Gets the index of the Band in the owner collection. (Inherited from
C1.Win.C1Sizer.Band)
IsFixedSize
Determines whether the Band should retain its size when the control is
resized. (Inherited from C1.Win.C1Sizer.Band)
IsSplitter
Determines whether the band acts like a splitter (can be resized with the
mouse at run time). (Inherited from C1.Win.C1Sizer.Band)
Size
Top
See Also
Reference
Row Class
C1.Win.C1Sizer Namespace
Size Property
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; set;}
Remarks
159
The Size property is updated whenever the control is resized, so that the rows take up the entire
height of the control.
You can prevent specific rows from being resized with the form by setting their Band.IsFixedSize
property. You can also set the size of multiple rows with a single call using the
BandCollection.SetSizes method in the RowCollection class.
When entering row heights or column widths into the PropertyGrid, you may also specify values
as percentages of the control size (e.g. "25%").
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
Row Class
Row Members
RowCollection
Collection of Row objects.
Object Model
Syntax
Visual Basic (Declaration)
Public Class RowCollection
Inherits BandCollection
C#
public class RowCollection : BandCollection
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.BandCollection
C1.Win.C1Sizer.RowCollection
160
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
RowCollection Members
C1.Win.C1Sizer Namespace
Overview
Collection of Row objects.
Object Model
Syntax
Visual Basic (Declaration)
Public Class RowCollection
Inherits BandCollection
C#
public class RowCollection : BandCollection
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.BandCollection
C1.Win.C1Sizer.RowCollection
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
161
RowCollection Members
C1.Win.C1Sizer Namespace
Members
Properties Methods
Public Properties
Name
Description
Count
Item
Top
Public Methods
Name
Description
Insert
Remove
SetSizes
Top
See Also
Reference
RowCollection Class
C1.Win.C1Sizer Namespace
Properties
%%scrap%%
162
" -->
For a list of all members of this type, see RowCollection members.
Public Properties
Name
Description
Count
Item
Top
See Also
Reference
RowCollection Class
C1.Win.C1Sizer Namespace
Item Property
Gets the Row object at a given index in the collection.
Syntax
Visual Basic (Declaration)
Public ReadOnly Default Property Item( _
ByVal index As Integer _
) As Row
C#
public Row this[
int index
]; {get;}
Parameters
index
Requirements
163
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
RowCollection Class
RowCollection Members
Strings
Static class containing UI strings.
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit NotInheritable Class Strings
C#
public static class Strings
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Strings
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 Members
C1.Win.C1Sizer Namespace
164
Overview
Static class containing UI strings.
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit NotInheritable Class Strings
C#
public static class Strings
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Strings
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 Members
C1.Win.C1Sizer Namespace
Members
Properties
Public Properties
Name
Description
CannotInsertBand
165
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
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
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
DesignTimeMessage Property
Syntax
Visual Basic (Declaration)
Public Shared ReadOnly Property DesignTimeMessage As String
C#
public static string DesignTimeMessage {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
ResourceManager Property
Syntax
169
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
Row Property
Syntax
Visual Basic (Declaration)
Public Shared ReadOnly Property Row As String
C#
public static string Row {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
UICulture Property
Syntax
170
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
Strings.BlendErrors
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit NotInheritable Class Strings.BlendErrors
C#
public static class Strings.BlendErrors
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Strings.BlendErrors
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
171
See Also
Reference
Strings.BlendErrors Members
C1.Win.C1Sizer Namespace
Overview
Object Model
Syntax
Visual Basic (Declaration)
Public MustInherit NotInheritable Class Strings.BlendErrors
C#
public static class Strings.BlendErrors
Inheritance Hierarchy
System.Object
C1.Win.C1Sizer.Strings.BlendErrors
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.BlendErrors Members
C1.Win.C1Sizer Namespace
Members
Properties
Public Properties
172
Name
Description
BadFormat
BadPosition
BadPositionOrFactor
CannotParseFloats
NonAscendingPositions
Top
See Also
Reference
Strings.BlendErrors Class
C1.Win.C1Sizer Namespace
Properties
%%scrap%%
" -->
For a list of all members of this type, see Strings.BlendErrors members.
Public Properties
Name
Description
BadFormat
BadPosition
BadPositionOrFactor
CannotParseFloats
NonAscendingPositions
Top
173
See Also
Reference
Strings.BlendErrors Class
C1.Win.C1Sizer Namespace
BadFormat Property
Syntax
Visual Basic (Declaration)
Public Shared ReadOnly Property BadFormat As String
C#
public static string BadFormat {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.BlendErrors Class
Strings.BlendErrors Members
BadPosition Property
Syntax
Visual Basic (Declaration)
Public Shared ReadOnly Property BadPosition As String
C#
public static string BadPosition {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
174
See Also
Reference
Strings.BlendErrors Class
Strings.BlendErrors Members
BadPositionOrFactor Property
Syntax
Visual Basic (Declaration)
Public Shared ReadOnly Property BadPositionOrFactor As String
C#
public static string BadPositionOrFactor {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.BlendErrors Class
Strings.BlendErrors Members
CannotParseFloats Property
Syntax
Visual Basic (Declaration)
Public Shared ReadOnly Property CannotParseFloats As String
C#
public static string CannotParseFloats {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
175
See Also
Reference
Strings.BlendErrors Class
Strings.BlendErrors Members
NonAscendingPositions Property
Syntax
Visual Basic (Declaration)
Public Shared ReadOnly Property NonAscendingPositions As String
C#
public static string NonAscendingPositions {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.BlendErrors Class
Strings.BlendErrors Members
Enumerations
AutoSizeEnum
Represents the possible sizing modes.
Syntax
Visual Basic (Declaration)
Public Enum AutoSizeEnum
Inherits System.Enum
C#
176
Members
Member
Description
Grid
None
No resizing.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1Sizer.AutoSizeEnum
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
C1.Win.C1Sizer Namespace
GradientMode
Specifies the background gradient mode.
Syntax
Visual Basic (Declaration)
Public Enum GradientMode
Inherits System.Enum
C#
public enum GradientMode : System.Enum
Members
177
Member
Description
DiagonalDown
DiagonalUp
Horizontal
None
No gradient.
Radial
Vertical
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1Sizer.GradientMode
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
C1.Win.C1Sizer Namespace
ImageAlignment
Specifies the image alignment.
Syntax
Visual Basic (Declaration)
178
Members
Member
Description
CenterBottom
CenterCenter
CenterTop
Image is vertically aligned at the top and horizontally aligned at the center.
LeftBottom
Image is vertically aligned at the bottom and horizontally aligned on the left.
LeftCenter
Image is vertically aligned in the middle and horizontally aligned on the left.
LeftTop
Image is vertically aligned at the top and horizontally aligned on the left.
RightBottom
RightCenter
RightTop
Image is vertically aligned at the top and horizontally aligned on the right.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1Sizer.ImageAlignment
Requirements
179
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
C1.Win.C1Sizer Namespace
ImageScaling
Specifies the image scaling.
Syntax
Visual Basic (Declaration)
Public Enum ImageScaling
Inherits System.Enum
C#
public enum ImageScaling : System.Enum
Members
Member
Description
Clip
Use the image's original size, clipping it to the display area if necessary.
Hide
Scale
Scale the image to fit the display area. This mode may increase or
reduce the size of the image while maintaining its aspect ratio.
Stretch
Stretch the image to fill the display area. This mode will usually change
the image's aspect ratio.
Tile
TileStretch
Tile the image into a 3x3 matrix and stretch it to fill the display area.
This mode preserves the size of the four corners of the image.
180
TileStretchHorizontal Tile the image into a row of 3 images and stretch it to fill the display
area. This mode preserves the size of the left and right parts of the
image.
TileStretchVertical
Tile the image into a column of 3 images and stretch it to fill the display
area. This mode preserves the size of the top and bottom parts of the
image.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1Sizer.ImageScaling
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
C1.Win.C1Sizer Namespace
Structures
Corners
Represents corners associated with a user interface (UI) element.
Object Model
Syntax
Visual Basic (Declaration)
Public Structure Corners
Inherits System.ValueType
181
C#
public struct Corners : System.ValueType
Inheritance Hierarchy
System.Object
System.ValueType
C1.Win.C1Sizer.Corners
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
Corners Members
C1.Win.C1Sizer Namespace
Overview
Represents corners associated with a user interface (UI) element.
Object Model
Syntax
Visual Basic (Declaration)
Public Structure Corners
Inherits System.ValueType
C#
public struct Corners : System.ValueType
Inheritance Hierarchy
System.Object
System.ValueType
C1.Win.C1Sizer.Corners
182
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
Corners Members
C1.Win.C1Sizer Namespace
Members
Properties Methods
Public Constructors
Name
Description
Public Properties
Name
Description
Empty
IsEmpty
LeftBottom
LeftTop
RightBottom
RightTop
Top
183
Public Methods
Name
Description
Equals
GetHashCode
Top
Public Operators
Equality
Top
See Also
Reference
Corners Structure
C1.Win.C1Sizer Namespace
Corners Constructor
Overload List
Overload
Description
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
184
See Also
Reference
Corners Structure
Corners Members
Corners Constructor(Int32,Int32,Int32,Int32)
Radius of the left top corner, in pixels.
Radius of the right top corner, in pixels.
Radius of the left bottom corner, in pixels.
Radius of the right bottom corner, in pixels.
Initializes a new instance of a Corners object.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal leftTop As Integer, _
ByVal rightTop As Integer, _
ByVal leftBottom As Integer, _
ByVal rightBottom As Integer _
)
C#
public Corners(
int leftTop,
int rightTop,
int leftBottom,
int rightBottom
)
Parameters
leftTop
Radius of the left top corner, in pixels.
rightTop
Radius of the right top corner, in pixels.
leftBottom
185
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
Corners Structure
Corners Members
Overload List
Corners Constructor(Int32)
Radius of all corners, in pixels.
Initializes a new instance of a Corners object.
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
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
Corners Structure
Corners Members
Overload List
Methods
%%scrap%%
" -->
For a list of all members of this type, see Corners members.
Public Methods
Name
Description
Equals
GetHashCode
Top
See Also
Reference
Corners Structure
C1.Win.C1Sizer Namespace
Equals Method
The object to compare to the current Corners.
Determines whether the value of the specified object is equivalent to the current Corners.
Syntax
Visual Basic (Declaration)
187
Parameters
obj
The object to compare to the current Corners.
Return Value
true if the two Corners objects are equal; otherwise, false.
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
Corners Structure
Corners Members
GetHashCode Method
Generates a hash code for the current Corners.
Syntax
Visual Basic (Declaration)
Public Overrides Function GetHashCode() As Integer
C#
public override int GetHashCode()
Return Value
A 32-bit signed integer hash code.
188
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
Corners Structure
Corners Members
Properties
%%scrap%%
" -->
For a list of all members of this type, see Corners members.
Public Properties
Name
Description
Empty
IsEmpty
LeftBottom
LeftTop
RightBottom
RightTop
Top
See Also
Reference
Corners Structure
C1.Win.C1Sizer Namespace
189
Empty Property
Provides a Corners object with no thickness.
Syntax
Visual Basic (Declaration)
Public Shared ReadOnly Property Empty As Corners
C#
public static Corners Empty {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
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;}
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
190
Reference
Corners Structure
Corners Members
LeftBottom Property
Gets or sets the radius for the left bottom corner.
Syntax
Visual Basic (Declaration)
Public Property LeftBottom As Integer
C#
public int LeftBottom {get; set;}
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
Corners Structure
Corners Members
LeftTop Property
Gets or sets the radius for the left top corner.
Syntax
Visual Basic (Declaration)
Public Property LeftTop As Integer
C#
public int LeftTop {get; set;}
Requirements
191
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
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; set;}
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
Corners Structure
Corners Members
RightTop Property
Gets or sets the radius for the right top corner.
Syntax
Visual Basic (Declaration)
Public Property RightTop As Integer
192
C#
public int RightTop {get; set;}
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
Corners Structure
Corners Members
Operators
Equality Operator
A Corners to test.
A Corners to test.
Tests whether two specified Corners objects are equivalent.
Syntax
Visual Basic (Declaration)
Public Operator =( _
ByVal c1 As Corners, _
ByVal c2 As Corners _
) As Boolean
C#
public bool operator ==(
Corners c1,
Corners c2
)
Parameters
c1
A Corners to test.
193
c2
A Corners to test.
Return Value
true if the two Corners objects are equal; otherwise, false.
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
Corners Structure
Corners Members
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 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
194
Reference
Corners Structure
Corners Members
Inequality Operator
A Corners to test.
A Corners to test.
Tests whether two specified Corners objects are not equivalent.
Syntax
Visual Basic (Declaration)
Public Operator <>( _
ByVal c1 As Corners, _
ByVal c2 As Corners _
) As Boolean
C#
public bool operator !=(
Corners c1,
Corners c2
)
Parameters
c1
A Corners to test.
c2
A Corners to test.
Return Value
True if the two Corners objects are different; otherwise, false.
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
195
Reference
Corners Structure
Corners Members
Delegates
C1SizerEventHandler
Represents the methods that will handle the C1Sizer.SplitterMoving and C1Sizer.SplitterMoved
events of a C1Sizer control.
Syntax
Visual Basic (Declaration)
Public Delegate Sub C1SizerEventHandler( _
ByVal sender As Object, _
ByVal e As C1SizerEventArgs _
)
C#
public delegate void C1SizerEventHandler(
object sender,
C1SizerEventArgs e
)
Parameters
sender
e
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
C1SizerEventHandler Members
C1.Win.C1Sizer Namespace
196
C1SizerLightEventHandler
Represents the method that will handle the C1SizerLight.ResizingFont and
C1SizerLight.ResizingControl events of a C1SizerLight component.
Syntax
Visual Basic (Declaration)
Public Delegate Sub C1SizerLightEventHandler( _
ByVal sender As Object, _
ByVal e As C1SizerLightEventArgs _
)
C#
public delegate void C1SizerLightEventHandler(
object sender,
C1SizerLightEventArgs e
)
Parameters
sender
e
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
C1SizerLightEventHandler Members
C1.Win.C1Sizer Namespace
197