GrapeCity.Xaml.SpreadSheet.Data
Parent Property (StyleInfo)
Example 


Gets or sets the name of the parent (StyleInfo object) of the style.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Overridable Property Parent As String
'Usage
 
Dim instance As StyleInfo
Dim value As String
 
instance.Parent = value
 
value = instance.Parent
[DefaultValue()]
public virtual string Parent {get; set;}

Property Value

The parent style name.
Example
This example sets the Parent property.
GrapeCity.Xaml.SpreadSheet.Data.StyleInfo aaa = new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo();
aaa.Background = New SolidColorBrush(Windows.UI.Colors.Aquamarine);
aaa.Parent = "ParentStyle";
aaa.Name = "aaa";
GrapeCity.Xaml.SpreadSheet.Data.StyleInfo ParentStyle = new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo();
ParentStyle.Background = new SolidColorBrush(Windows.UI.Colors.Aquamarine);
ParentStyle.HorizontalAlignment = GrapeCity.Xaml.SpreadSheet.Data.CellHorizontalAlignment.Right;
ParentStyle.Name = "ParentStyle";
gcSpreadSheet1.Sheets[0].NamedStyles.Add(aaa);
gcSpreadSheet1.Sheets[0].NamedStyles.Add(ParentStyle);
gcSpreadSheet1.Sheets[0].Cells[0, 0].StyleName = "aaa";
Dim aaa As New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo()
aaa.Background = New SolidColorBrush(Windows.UI.Colors.Aquamarine)
aaa.Parent = "ParentStyle"
aaa.Name = "aaa"
Dim ParentStyle As New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo()
ParentStyle.Background = New SolidColorBrush(Windows.UI.Colors.Aquamarine)
ParentStyle.HorizontalAlignment = GrapeCity.Xaml.SpreadSheet.Data.CellHorizontalAlignment.Right
ParentStyle.Name = "ParentStyle"
GcSpreadSheet1.Sheets(0).NamedStyles.Add(aaa)
GcSpreadSheet1.Sheets(0).NamedStyles.Add(ParentStyle)
GcSpreadSheet1.Sheets(0).Cells(0, 0).StyleName = "aaa"
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

StyleInfo Class
StyleInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options