Table 74. PropertySet Methods Syntax Summary
Method
|
Description
|
Syntax
|
|
Adds subsidiary property sets to a property set.
|
var oPropSet; oPropSet.AddChild(childObject);
|
|
Returns a copy of a property set.
|
var oPropSet1; var oPropSet2; oPropSet2 = oPropSet1.Copy();
|
|
Returns a specified child property set of a property set.
|
var oPropSet; var oChildPropSet; oChildPropSet = oPropSet.GetChild(index);
|
|
Returns the number of child property sets attached to a parent property set.
|
var oPropSet; var iCount; iCount = oPropSet.GetChildCount();
|
|
Returns the name of the first property in a property set.
|
var oPropSet; var sPropName sPropName = oPropSet.GetFirstProperty();
|
|
Returns the name of the next property in a property set.
|
var oPropSet; var sPropName sPropName = oPropSet.GetNextProperty();
|
|
Returns the value of a property when given the property name.
|
var oPropSet; var sValue sValue = oPropSet.GetProperty(propName)
|
|
Returns the number of properties attached to a property set.
|
var oPropSet; var iCount; iCount = oPropSet.GetPropertyCount();
|
|
Returns the value stored in a type in a property set.
|
var oPropSet; var type; type = oPropSet.GetType();
|
|
Returns a value stored as part of a property set.
|
var oPropSet; var sValue; sValue = oPropSet.GetValue();
|
|
Inserts a child property set into a parent property set at a specific location.
|
var oPropSet; oPropSet.InsertChildAt(childObject, index);
|
|
Returns a Boolean value indicating whether the property specified in the argument exists.
|
var oPropSet; var bool; bool = oPropSet.PropertyExists(propName);
|
|
Removes a child property set as a specified index from a parent property set.
|
var oPropSet; oPropSet.RemoveChild(index);
|
|
Removes the property specified in its argument from a property set.
|
var oPropSet; oPropSet.RemoveProperty(propName);
|
|
Removes every property and child property set from a property set.
|
var oPropSet; oPropSet.Reset();
|
|
Assigns a value to the property of a property set specified in its argument.
|
var oPropSet; oPropSet.SetProperty propName , propValue
|
|
Assigns a data value to a type member of a property set.
|
var oPropSet; oPropSet.SetType(value);
|
|
Assigns a data value to a value member of a property set.
|
var oPropSet; oPropSet.SetValue(value);
|