GrapeCity.Xaml.SpreadSheet.Data
ShrinkToFit Property (Cell)
Example 


Gets or sets whether to support shrink to fit.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property ShrinkToFit As Boolean
'Usage
 
Dim instance As Cell
Dim value As Boolean
 
instance.ShrinkToFit = value
 
value = instance.ShrinkToFit
[DefaultValue()]
public bool ShrinkToFit {get; set;}

Property Value

true if the content supports shrink to fit; otherwise, false. The default value is false.
Example
This example uses the ShrinkToFit property.
gcSpreadSheet1.Sheets[0].Cells[1,1].Text = "Shrink To Fit Test";
gcSpreadSheet1.Sheets[0].Cells[1, 1].ShrinkToFit = true;
gcSpreadSheet1.Sheets[0].Cells[2, 1].Text = "Shrink To Fit Test";
gcSpreadSheet1.Sheets[0].Cells[2, 1].ShrinkToFit = false;
GcSpreadSheet1.Sheets(0).Cells(1,1).Text = "Shrink To Fit Test"
GcSpreadSheet1.Sheets(0).Cells(1,1).ShrinkToFit = True
GcSpreadSheet1.Sheets(0).Cells(2,1).Text = "Shrink To Fit Test"
GcSpreadSheet1.Sheets(0).Cells(2,1).ShrinkToFit = False
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options