GrapeCity.Win.MultiRow Namespace > Cell Class : VerticalResize Method |
Exception | Description |
---|---|
System.InvalidOperationException | Executes this method when the cell's owner Template is not set to GcMultiRow. -or- -or- This cell is beyond the boundary of the parent Section. |
void changeFristColumnWidth_Click(object sender, EventArgs e) { Cell cell = this.gcMultiRow1.ColumnHeaders[0][0]; // Cell's width decreases by 5 pixels. cell.HorizontalResize(-5); } void changeFristRowWidth_Click(object sender, EventArgs e) { Cell cell = this.gcMultiRow1.Rows[0][0]; // Cell's height decreases by 5 pixels. cell.VerticalResize(-5); }
Private Sub changeFristColumnWidth_Click(ByVal sender As Object, ByVal e As EventArgs) Handles changeFristColumnWidth.Click Dim cell As Cell = Me.gcMultiRow1.ColumnHeaders(0)(0) ' Cell's width decreases by 5 pixels. cell.HorizontalResize(-5) End Sub Private Sub changeFristRowWidth_Click(ByVal sender As Object, ByVal e As EventArgs) Handles changeFristRowWidth.Click Dim cell As Cell = Me.gcMultiRow1.Rows(0)(0) ' Cell's height decreases by 5 pixels. cell.VerticalResize(-5) End Sub
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