Spread ASP.NET 18
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / Cell Class / Parent Property
Example


In This Topic
    Parent Property (Cell)
    In This Topic
    Gets the parent for this cell.
    Syntax
    'Declaration
     
    
    Public ReadOnly Property Parent As Cells
    'Usage
     
    
    Dim instance As Cell
    Dim value As Cells
     
    value = instance.Parent
    public Cells Parent {get;}

    Property Value

    Parent Cells object containing this cell
    Example
    This example creates a Cell object and returns its Parent to a text box.
    FarPoint.Web.Spread.Cell mycell;
    FarPoint.Web.Spread.Cells cells;
    mycell=FpSpread1.Cells[0,0];
    mycell.Value="Who is your parent?";
    cells=mycell.Parent;
    TextBox1.Text=Convert.ToString(cells);
    Dim mycell As FarPoint.Web.Spread.Cell
    Dim cells As FarPoint.Web.Spread.Cells
    mycell=FpSpread1.Cells(0,0)
    mycell.Value="Who is your parent?"
    cells=mycell.Parent()
    TextBox1.Text=Convert.ToString(cells)
    See Also