Class XMLPropPointerHelper
Inheritance
XMLPropPointerHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class XMLPropPointerHelper
Methods
AddEventsHandler(ComWrapper<IST_XMLPropPointer>, string, IST_AbstractPropEventsHandler)
Subscribe to XML property event tracking
Declaration
public static void AddEventsHandler(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name, IST_AbstractPropEventsHandler Handler)
Parameters
Arr(ComWrapper<IST_XMLPropPointer>, string)
Retrieves the array property by name
Declaration
public static ComWrapper<IST_XMLPropArray> Arr(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
Assign(ComWrapper<IST_XMLPropPointer>, IST_XMLPropPointer)
Copy data from another property
Declaration
public static void Assign(this ComWrapper<IST_XMLPropPointer> XMLPropCom, IST_XMLPropPointer Src)
Parameters
AssignHandlers(ComWrapper<IST_XMLPropPointer>, IST_XMLPropPointer)
Copy event handlers from another similar property
Declaration
public static void AssignHandlers(this ComWrapper<IST_XMLPropPointer> XMLPropCom, IST_XMLPropPointer Src)
Parameters
Attribute(ComWrapper<IST_XMLPropPointer>, string)
Gets the attribute value by name
Declaration
public static string Attribute(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
AttributeBol(ComWrapper<IST_XMLPropPointer>, string)
Checks if the attribute is a boolean
Declaration
public static bool AttributeBol(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
AttributeExists(ComWrapper<IST_XMLPropPointer>, string)
Checks if the attribute exists by name
Declaration
public static bool AttributeExists(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
AttributeFlt(ComWrapper<IST_XMLPropPointer>, string)
Gets the float attribute value by name
Declaration
public static double AttributeFlt(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
AttributeInt(ComWrapper<IST_XMLPropPointer>, string)
Gets the integer attribute value by name
Declaration
public static int AttributeInt(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
AttributeList(ComWrapper<IST_XMLPropPointer>)
Declaration
public static ComWrapper<IST_XMLPropAttributesList> AttributeList(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
BeginUpdate(ComWrapper<IST_XMLPropPointer>)
Begins updating the property
Declaration
public static void BeginUpdate(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Bol(ComWrapper<IST_XMLPropPointer>, string)
Checks if the boolean property by name is true.
Declaration
public static bool Bol(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
CStr(ComWrapper<IST_XMLPropPointer>, string)
Gets the с string property value by name
Declaration
public static string CStr(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
Caption(ComWrapper<IST_XMLPropPointer>)
Declaration
public static string Caption(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
Child(ComWrapper<IST_XMLPropPointer>)
Declaration
public static ComWrapper<IST_XMLPropPointer> Child(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
ClearHandlersList(ComWrapper<IST_XMLPropPointer>)
Clears the list of event handlers
Declaration
public static void ClearHandlersList(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
DataText(ComWrapper<IST_XMLPropPointer>)
XML representation of the property
Declaration
public static string DataText(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
DefaultValue(ComWrapper<IST_XMLPropPointer>)
Declaration
public static string DefaultValue(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
DeleteEventsHandler(ComWrapper<IST_XMLPropPointer>, string)
Deletes an event handler by name
Declaration
public static void DeleteEventsHandler(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Descriptor(ComWrapper<IST_XMLPropPointer>)
Declaration
public static ComWrapper<IST_XMLPropDescriptor> Descriptor(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
EndUpdate(ComWrapper<IST_XMLPropPointer>)
Ends updating the property
Declaration
public static void EndUpdate(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
FindProperty(ComWrapper<IST_XMLPropPointer>, string)
Declaration
public static ComWrapper<IST_XMLPropPointer> FindProperty(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
FindPropertyInWholeScope(ComWrapper<IST_XMLPropPointer>, string)
Find property in whole scope
Declaration
public static ComWrapper<IST_XMLPropPointer> FindPropertyInWholeScope(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
Flt(ComWrapper<IST_XMLPropPointer>, string)
Gets the float property value by name
Declaration
public static double Flt(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
ForceCreateChildPropOfName(ComWrapper<IST_XMLPropPointer>, string)
Declaration
public static ComWrapper<IST_XMLPropPointer> ForceCreateChildPropOfName(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string propName)
Parameters
Returns
GetAttributeAsBoolean(ComWrapper<IST_XMLPropPointer>, string, bool)
Gets the boolean attribute value by name with a default value
Declaration
public static bool GetAttributeAsBoolean(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name, bool DefValue)
Parameters
Returns
GetCopy(ComWrapper<IST_XMLPropPointer>)
Create a copy along with child elements
Declaration
public static ComWrapper<IST_XMLPropPointer> GetCopy(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
GetEventsHandler(ComWrapper<IST_XMLPropPointer>, string)
Declaration
public static nint GetEventsHandler(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
GetExpressionValueAsBoolean(ComWrapper<IST_XMLPropPointer>, string, bool)
Gets the boolean expression value as boolean
Declaration
public static bool GetExpressionValueAsBoolean(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string Expr, bool DefValue)
Parameters
Returns
GetExpressionValueAsFloat(ComWrapper<IST_XMLPropPointer>, string, double)
Gets the float expression value as float
Declaration
public static double GetExpressionValueAsFloat(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string Expr, double DefValue)
Parameters
Returns
GetExpressionValueAsString(ComWrapper<IST_XMLPropPointer>, string, string)
Gets the string expression value as string
Declaration
public static string GetExpressionValueAsString(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string Expr, string DefValue)
Parameters
Returns
GetFullName(ComWrapper<IST_XMLPropPointer>, bool)
Gets the full name of the property
Declaration
public static string GetFullName(this ComWrapper<IST_XMLPropPointer> XMLPropCom, bool RootNodeToo)
Parameters
Returns
HasArray(ComWrapper<IST_XMLPropPointer>, string)
Return true, if the property has a child array (IST_PropArray) named Name
Declaration
public static bool HasArray(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
Int(ComWrapper<IST_XMLPropPointer>, string)
Gets the integer property value by name
Declaration
public static int Int(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
IsArray(ComWrapper<IST_XMLPropPointer>)
Return true, if the property is an array (IST_PropArray)
Declaration
public static bool IsArray(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
IsAttributesSameWithDefaultValue(ComWrapper<IST_XMLPropPointer>)
Restore the default attributes
Declaration
public static bool IsAttributesSameWithDefaultValue(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
IsCaseNode(ComWrapper<IST_XMLPropPointer>)
Return true, if the property is a switchable complex type (IST_XMLPropCaseNode)
Declaration
public static bool IsCaseNode(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
IsComputed(ComWrapper<IST_XMLPropPointer>)
Declaration
public static bool IsComputed(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
IsEnabled(ComWrapper<IST_XMLPropPointer>)
Enabled state of the property
Declaration
public static bool IsEnabled(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
IsEq(ComWrapper<IST_XMLPropPointer>, IST_XMLPropPointer, double, double)
Restore the default attributes
Declaration
public static bool IsEq(this ComWrapper<IST_XMLPropPointer> XMLPropCom, IST_XMLPropPointer p, double LinearTol, double FloatTol)
Parameters
Returns
IsInheritFrom(ComWrapper<IST_XMLPropPointer>, string)
Is property type a descendant of type TypeName
Declaration
public static bool IsInheritFrom(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string typename)
Parameters
Returns
IsObsolete(ComWrapper<IST_XMLPropPointer>)
Return True, if the property is obsolete and shouldn't be used in new versions
Declaration
public static bool IsObsolete(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
IsReadOnly(ComWrapper<IST_XMLPropPointer>)
Is the property read-only
Declaration
public static bool IsReadOnly(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
IsSameWithDefaultValue(ComWrapper<IST_XMLPropPointer>)
Return true, if the property is a switchable complex type (IST_XMLPropCaseNode)
Declaration
public static bool IsSameWithDefaultValue(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
LoadFromDisplacedXMLFile(ComWrapper<IST_XMLPropPointer>, string, string, string)
Load from displaced XML file
Declaration
public static void LoadFromDisplacedXMLFile(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string AFileName, string OriginalFolder, string OriginalType)
Parameters
LoadFromExistingXMLFile(ComWrapper<IST_XMLPropPointer>, string, string)
Load from existing XML file
Declaration
public static void LoadFromExistingXMLFile(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string AFileName, string AnXMLNodePath)
Parameters
LoadFromSingleFileStream(ComWrapper<IST_XMLPropPointer>, IStream)
Load from single file stream
Declaration
public static void LoadFromSingleFileStream(this ComWrapper<IST_XMLPropPointer> XMLPropCom, IStream Stream)
Parameters
LoadFromStream(ComWrapper<IST_XMLPropPointer>, IStream, bool)
Loads the property from a stream
Declaration
public static void LoadFromStream(this ComWrapper<IST_XMLPropPointer> XMLPropCom, IStream Stream, bool Compress)
Parameters
LoadFromXMLFile(ComWrapper<IST_XMLPropPointer>, string)
Declaration
public static void LoadFromXMLFile(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string AFileName)
Parameters
LoadFromXMLText(ComWrapper<IST_XMLPropPointer>, string)
Load content of properites from the specified XML text string.
Declaration
public static bool LoadFromXMLText(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string XMLText)
Parameters
Returns
Name(ComWrapper<IST_XMLPropPointer>)
Declaration
public static string Name(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
NodeValue(ComWrapper<IST_XMLPropPointer>)
Declaration
public static string NodeValue(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
ParamType(ComWrapper<IST_XMLPropPointer>)
Declaration
public static string ParamType(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
Parent(ComWrapper<IST_XMLPropPointer>)
Declaration
public static ComWrapper<IST_XMLPropPointer> Parent(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
PropEnabled(ComWrapper<IST_XMLPropPointer>, string)
Checks if the property is enabled by name
Declaration
public static bool PropEnabled(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
PropExists(ComWrapper<IST_XMLPropPointer>, string)
Checks if the property exists
Declaration
public static bool PropExists(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
Ptr(ComWrapper<IST_XMLPropPointer>, string)
Gets the pointer property
Declaration
public static ComWrapper<IST_XMLPropPointer> Ptr(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
RawAttribute(ComWrapper<IST_XMLPropPointer>, string)
Gets the raw attribute value by name.
Declaration
public static string RawAttribute(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
RestoreDefaultValue(ComWrapper<IST_XMLPropPointer>)
Restore the default value
Declaration
public static void RestoreDefaultValue(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
SaveMarkedToXMLFile(ComWrapper<IST_XMLPropPointer>, string)
Declaration
public static void SaveMarkedToXMLFile(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string AFileName)
Parameters
SaveToDisplacedXMLFile(ComWrapper<IST_XMLPropPointer>, string, string)
Save to displaced XML file
Declaration
public static void SaveToDisplacedXMLFile(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string AFileName, string OriginalFolder)
Parameters
SaveToExistingXMLFile(ComWrapper<IST_XMLPropPointer>, string, string)
Save to existing XML file
Declaration
public static void SaveToExistingXMLFile(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string AFileName, string AnXMLNodePath)
Parameters
SaveToFileMark(ComWrapper<IST_XMLPropPointer>)
Declaration
public static bool SaveToFileMark(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
SaveToSingleFileStream(ComWrapper<IST_XMLPropPointer>, IStream)
Save to single file stream
Declaration
public static void SaveToSingleFileStream(this ComWrapper<IST_XMLPropPointer> XMLPropCom, IStream Stream)
Parameters
SaveToStream(ComWrapper<IST_XMLPropPointer>, IStream, bool)
Declaration
public static void SaveToStream(this ComWrapper<IST_XMLPropPointer> XMLPropCom, IStream Stream, bool Compress)
Parameters
SaveToXMLFile(ComWrapper<IST_XMLPropPointer>, string)
Declaration
public static void SaveToXMLFile(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string AFileName)
Parameters
SaveToXMLText(ComWrapper<IST_XMLPropPointer>)
Save content of properites to an XML text string.
Declaration
public static string SaveToXMLText(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
SetAttribute(ComWrapper<IST_XMLPropPointer>, string, string)
Sets the attribute value by name
Declaration
public static void SetAttribute(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name, string value)
Parameters
SetAttributeBol(ComWrapper<IST_XMLPropPointer>, string, bool)
Sets the boolean attribute value by name
Declaration
public static void SetAttributeBol(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name, bool value)
Parameters
SetAttributeFlt(ComWrapper<IST_XMLPropPointer>, string, double)
Sets the float attribute value by name
Declaration
public static void SetAttributeFlt(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name, double value)
Parameters
SetAttributeInt(ComWrapper<IST_XMLPropPointer>, string, int)
Sets the integer attribute value by name
Declaration
public static void SetAttributeInt(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name, int value)
Parameters
SetBol(ComWrapper<IST_XMLPropPointer>, string, bool)
Sets the boolean property value by name
Declaration
public static void SetBol(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name, bool value)
Parameters
SetFlt(ComWrapper<IST_XMLPropPointer>, string, double)
Sets the float property value by name
Declaration
public static void SetFlt(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name, double value)
Parameters
SetInt(ComWrapper<IST_XMLPropPointer>, string, int)
Sets the integer property value by name
Declaration
public static void SetInt(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name, int value)
Parameters
SetNodeValue(ComWrapper<IST_XMLPropPointer>, string)
Set property value as text
Declaration
public static void SetNodeValue(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string value)
Parameters
SetPropEnabled(ComWrapper<IST_XMLPropPointer>, string, bool)
Sets the enabled state of the property by name
Declaration
public static void SetPropEnabled(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name, bool value)
Parameters
SetRawAttribute(ComWrapper<IST_XMLPropPointer>, string, string)
Sets the raw attribute value by name
Declaration
public static void SetRawAttribute(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name, string value)
Parameters
SetSaveToFileMark(ComWrapper<IST_XMLPropPointer>, bool)
Declaration
public static void SetSaveToFileMark(this ComWrapper<IST_XMLPropPointer> XMLPropCom, bool value)
Parameters
SetStr(ComWrapper<IST_XMLPropPointer>, string, string)
Sets the string property value by name
Declaration
public static void SetStr(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name, string value)
Parameters
SetUpdated(ComWrapper<IST_XMLPropPointer>, bool)
Return True, if the property (or any of its child properties) was updated during Begin-EndUpdate
Declaration
public static void SetUpdated(this ComWrapper<IST_XMLPropPointer> XMLPropCom, bool value)
Parameters
SetValueAsBoolean(ComWrapper<IST_XMLPropPointer>, bool)
Set the value of the corresponding type
Declaration
public static void SetValueAsBoolean(this ComWrapper<IST_XMLPropPointer> XMLPropCom, bool value)
Parameters
SetValueAsDouble(ComWrapper<IST_XMLPropPointer>, double)
Declaration
public static void SetValueAsDouble(this ComWrapper<IST_XMLPropPointer> XMLPropCom, double value)
Parameters
SetValueAsInteger(ComWrapper<IST_XMLPropPointer>, int)
Declaration
public static void SetValueAsInteger(this ComWrapper<IST_XMLPropPointer> XMLPropCom, int value)
Parameters
SetValueAsString(ComWrapper<IST_XMLPropPointer>, string)
Declaration
public static void SetValueAsString(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string value)
Parameters
SetVersion(ComWrapper<IST_XMLPropPointer>, int)
XML property version (ReadVer), which may not match the XML type version
Declaration
public static void SetVersion(this ComWrapper<IST_XMLPropPointer> XMLPropCom, int value)
Parameters
Sibling(ComWrapper<IST_XMLPropPointer>)
Declaration
public static ComWrapper<IST_XMLPropPointer> Sibling(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
SimpleType(ComWrapper<IST_XMLPropPointer>)
Declaration
public static TSTSimplePropType SimpleType(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
Str(ComWrapper<IST_XMLPropPointer>, string)
Gets the string property value by name
Declaration
public static string Str(this ComWrapper<IST_XMLPropPointer> XMLPropCom, string name)
Parameters
Returns
UpdateCount(ComWrapper<IST_XMLPropPointer>)
Number of pending BeginUpdate calls
Declaration
public static int UpdateCount(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
UpdateStamp(ComWrapper<IST_XMLPropPointer>)
Gets the update stamp of the property
Declaration
public static ulong UpdateStamp(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
Updated(ComWrapper<IST_XMLPropPointer>)
Return True, if the property (or any of its child properties) was updated during Begin-EndUpdate
Declaration
public static bool Updated(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
ValueAsBoolean(ComWrapper<IST_XMLPropPointer>)
Get the value of the corresponding type
Declaration
public static bool ValueAsBoolean(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
ValueAsCalculatedString(ComWrapper<IST_XMLPropPointer>)
Get value as calculated string
Declaration
public static string ValueAsCalculatedString(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
ValueAsDouble(ComWrapper<IST_XMLPropPointer>)
Declaration
public static double ValueAsDouble(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
ValueAsInteger(ComWrapper<IST_XMLPropPointer>)
Declaration
public static int ValueAsInteger(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
ValueAsString(ComWrapper<IST_XMLPropPointer>)
Declaration
public static string ValueAsString(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns
Version(ComWrapper<IST_XMLPropPointer>)
XML property version (ReadVer), which may not match the XML type version
Declaration
public static int Version(this ComWrapper<IST_XMLPropPointer> XMLPropCom)
Parameters
Returns