GrapeCity MultiRow Windows Forms Documentation
ScrollableArea Property
Example 


Gets a value that indicates the scrollable area.
Syntax
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
<BrowsableAttribute(False)>
<FeatureAttribute(Name="Scroll", Version="v5.0")>
Public ReadOnly Property ScrollableArea As Rectangle
Dim instance As GcMultiRow
Dim value As Rectangle
 
value = instance.ScrollableArea
[EditorBrowsable(EditorBrowsableState.Advanced)]
[Browsable(false)]
[Feature(Name="Scroll", Version="v5.0")]
public Rectangle ScrollableArea {get;}

Property Value

A System.Drawing.Rectangle value that indicates the scrollable area.
Remarks

If the control is bigger than the content area, the scroll bars may be hidden or disabled, but the scrollable area remains the same as the content area.

When the control has frozen cells or rows, the scrollable area is the area which can be scrolled in both horizontal and vertical directions.

When the GcMultiRow control ZoomFactor property is changed with code or a UI action, the scrollable area is updated according to the changed ZoomFactor.

Example
This example gets the scrollable area.
GrapeCity.Win.MultiRow.TextBoxCell text1 = new GrapeCity.Win.MultiRow.TextBoxCell();
GrapeCity.Win.MultiRow.TextBoxCell text2 = new GrapeCity.Win.MultiRow.TextBoxCell();
text1.Name = "text1";
text2.Name = "text2";
GrapeCity.Win.MultiRow.Template template1 = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(new GrapeCity.Win.MultiRow.Cell[] { text1, text2 }, 160, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader | GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber);
template1.ColumnHeaders[0].Cells[0].Value = "Column1";
template1.ColumnHeaders[0].Cells[1].Value = "Column2";
gcMultiRow1.Template = template1;
gcMultiRow1.RowCount = 3;
listBox1.Items.Add(gcMultiRow1.ScrollableArea.ToString());
Dim text1 As New GrapeCity.Win.MultiRow.TextBoxCell()
Dim text2 As New GrapeCity.Win.MultiRow.TextBoxCell()
text1.Name = "text1"
text2.Name = "text2"
Dim template1 As GrapeCity.Win.MultiRow.Template = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(New GrapeCity.Win.MultiRow.Cell() {text1, text2}, 160, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader Or GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber)
template1.ColumnHeaders(0).Cells(0).Value = "Column1"
template1.ColumnHeaders(0).Cells(1).Value = "Column2"
GcMultiRow1.Template = template1
GcMultiRow1.RowCount = 3
ListBox1.Items.Add(gcMultiRow1.ScrollableArea.ToString())
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

GcMultiRow Class
GcMultiRow Members

 

 


Copyright © GrapeCity, inc. All rights reserved.