Spread Windows Forms 11.0 Product Documentation
Parent Property (DefaultSheetStyleModel)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetStyleModel Class : Parent Property
Gets or sets the parent style model.
Syntax
'Declaration
 
Public Overridable Property Parent As ISheetStyleModel
'Usage
 
Dim instance As DefaultSheetStyleModel
Dim value As ISheetStyleModel
 
instance.Parent = value
 
value = instance.Parent
public virtual ISheetStyleModel Parent {get; set;}

Property Value

ISheetStyleModel object with the parent style model
Remarks
If the parent style model is not null, then it is called to compose cell, column, row, or model default styles in GetCompositeInfo.
Example
This example illustrates the use of this member by returning the parent of the model.
FarPoint.Win.Spread.Model.DefaultSheetStyleModel defstyleModel = new FarPoint.Win.Spread.Model.DefaultSheetStyleModel();
defstyleModel = (FarPoint.Win.Spread.Model.DefaultSheetStyleModel)fpSpread1.ActiveSheet.Models.Style;
listBox1.Items.Add(defstyleModel.Parent);
Dim defstyleModel As New FarPoint.Win.Spread.Model.DefaultSheetStyleModel()
defstyleModel = FpSpread1.ActiveSheet.Models.Style
ListBox1.Items.Add(defstyleModel.Parent)
See Also

Reference

DefaultSheetStyleModel Class
DefaultSheetStyleModel Members