Spread Windows Forms 6.0 Product Documentation
Parent Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ActionMap Class : Parent Property


Glossary Item Box

Gets or sets the parent action map (ActionMap object) of this action map.

Syntax

Visual Basic (Declaration) 
Public Property Parent As ActionMap
Visual Basic (Usage)Copy Code
Dim instance As ActionMap
Dim value As ActionMap
 
instance.Parent = value
 
value = instance.Parent
C# 
public ActionMap Parent {get; set;}

Property Value

Parent ActionMap

Example

This example returns the parent for the keys in the map.
C#Copy Code
FarPoint.Win.Spread.ActionMap map, parent;
map = fpSpread1.GetActionMap();
object[] keys = map.AllKeys();
parent = map.Parent;
foreach (object key in keys)
{
       listBox1.Items.Add(parent.Get(key).ToString());;
}
Visual BasicCopy Code
Dim map, parent As FarPoint.Win.Spread.ActionMap
map = FpSpread1.GetActionMap()
Dim keys As Object() = map.AllKeys()
Dim key As Object
parent = map.Parent
For Each key In keys
       ListBox1.Items.Add(parent.Get(key).ToString())
Next

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.