ZForge.Controls.TreeViewAdv.Tree.NodeControls.BindableControl.GetValue C# (CSharp) Method

GetValue() public method

public GetValue ( TreeNodeAdv node ) : object
node TreeNodeAdv
return object
        public virtual object GetValue(TreeNodeAdv node)
        {
            if (VirtualMode)
            {
                NodeControlValueEventArgs args = new NodeControlValueEventArgs(node);
                OnValueNeeded(args);
                return args.Value;
            }
            else
            {
                try
                {
                    return GetMemberAdapter(node).Value;
                }
                catch (TargetInvocationException ex)
                {
                    if (ex.InnerException != null)
                        throw new ArgumentException(ex.InnerException.Message, ex.InnerException);
                    else
                        throw new ArgumentException(ex.Message);
                }
            }
        }