Mono.Addins.Description.NodeTypeAttribute.CopyFrom C# (CSharp) Method

CopyFrom() public method

Copies data from another node attribute.
public CopyFrom ( NodeTypeAttribute att ) : void
att NodeTypeAttribute /// The attribute from which to copy. ///
return void
        public void CopyFrom(NodeTypeAttribute att)
        {
            name = att.name;
            type = att.type;
            required = att.required;
            localizable = att.localizable;
            description = att.description;
        }

Usage Example

Example #1
0
 /// <summary>
 ///  Copies data from another node set
 /// </summary>
 public void CopyFrom(ExtensionNodeType ntype)
 {
     base.CopyFrom(ntype);
     this.typeName       = ntype.TypeName;
     this.objectTypeName = ntype.ObjectTypeName;
     this.description    = ntype.Description;
     this.addinId        = ntype.AddinId;
     Attributes.Clear();
     foreach (NodeTypeAttribute att in ntype.Attributes)
     {
         NodeTypeAttribute catt = new NodeTypeAttribute();
         catt.CopyFrom(att);
         Attributes.Add(catt);
     }
 }
All Usage Examples Of Mono.Addins.Description.NodeTypeAttribute::CopyFrom