GrapeCity.Xaml.SpreadSheet.Data
IsShrinkToFitSet Method
Example 


Gets a value that indicates whether the shrink to fit of the cell contents (ShrinkToFit property) is set.
Syntax
'Declaration
 
Public Overridable Function IsShrinkToFitSet() As Boolean
'Usage
 
Dim instance As StyleInfo
Dim value As Boolean
 
value = instance.IsShrinkToFitSet()
public virtual bool IsShrinkToFitSet()

Return Value

true if the shrink to fit of the cell contents (ShrinkToFit property) is set; otherwise, false.
Example
This example sets the IsShrinkToFitSet method.
GrapeCity.Xaml.SpreadSheet.Data.StyleInfo style = new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo();
style.TabStop = false;
style.ShrinkToFit = true;
style.Name = "Style1";
gcSpreadSheet1.ActiveSheet.NamedStyles.Add(style);
gcSpreadSheet1.ActiveSheet.Cells[1, 1].StyleName = "Style1";
listBox1.Items.Add(style.IsShrinkToFitSet().ToString());
listBox1.Items.Add(style.IsTabStopSet().ToString());
//style.ResetTabStop();
//style.ResetShrinkToFit();
Dim style As New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo()
style.TabStop = False
style.ShrinkToFit = True
style.Name = "Style1"
GcSpreadSheet1.ActiveSheet.NamedStyles.Add(style)
GcSpreadSheet1.ActiveSheet.Cells(1, 1).StyleName = "Style1"
ListBox1.Items.Add(style.IsShrinkToFitSet.ToString())
ListBox1.Items.Add(style.IsTabStopSet.ToString())
'style.ResetTabStop()
'style.ResetShrinkToFit()
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

StyleInfo Class
StyleInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options