Interface IST_XMLPropPointer
Instance of a property of a specific type. Data tree element
Assembly: STXMLPropTypes.dll
Syntax
[Guid("C0DD421D-53CB-4E7F-91D9-E5E1A6E62280")]
public interface IST_XMLPropPointer
Properties
Arr[string]
Declaration
IST_XMLPropArray Arr[string Name] { get; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
Attribute[string]
Declaration
string Attribute[string Name] { get; set; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
AttributeBol[string]
Declaration
bool AttributeBol[string Name] { get; set; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
AttributeExists[string]
Declaration
bool AttributeExists[string Name] { get; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
AttributeFlt[string]
Declaration
double AttributeFlt[string Name] { get; set; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
AttributeInt[string]
Declaration
int AttributeInt[string Name] { get; set; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
AttributesList
Declaration
IST_XMLPropAttributesList AttributesList { get; }
Property Value
Bol[string]
Declaration
bool Bol[string Name] { get; set; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
Caption
Declaration
Property Value
Child
Declaration
IST_XMLPropPointer Child { get; }
Property Value
CStr[string]
Declaration
string CStr[string Name] { get; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
DataText
XML representation of the property
Declaration
Property Value
DefaultValue
Declaration
string DefaultValue { get; }
Property Value
Descriptor
Declaration
IST_XMLPropDescriptor Descriptor { get; }
Property Value
Flt[string]
Declaration
double Flt[string Name] { get; set; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
Int[string]
Declaration
int Int[string Name] { get; set; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
IsComputed
Declaration
Property Value
IsEnabled
Enabled state of the property
Declaration
bool IsEnabled { get; set; }
Property Value
IsObsolete
Return True, if the property is obsolete and shouldn't be used in new versions
Declaration
Property Value
IsReadOnly
Is the property read-only
Declaration
Property Value
Name
Declaration
Property Value
NodeValue
Declaration
string NodeValue { get; set; }
Property Value
ParamType
Declaration
string ParamType { get; }
Property Value
Parent
Declaration
IST_XMLPropPointer Parent { get; }
Property Value
PropEnabled[string]
Declaration
bool PropEnabled[string Name] { get; set; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
PropExists[string]
Declaration
bool PropExists[string Name] { get; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
Ptr[string]
Declaration
IST_XMLPropPointer Ptr[string Name] { get; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
RawAttribute[string]
Declaration
string RawAttribute[string Name] { get; set; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
SaveToFileMark
Declaration
bool SaveToFileMark { get; set; }
Property Value
Sibling
Declaration
IST_XMLPropPointer Sibling { get; }
Property Value
SimpleType
Declaration
TSTSimplePropType SimpleType { get; }
Property Value
Str[string]
Declaration
string Str[string Name] { get; set; }
Parameters
Type |
Name |
Description |
string |
Name |
|
Property Value
UpdateCount
Number of pending BeginUpdate calls
Declaration
Property Value
Updated
Return True, if the property (or any of its child properties) was updated during Begin-EndUpdate
Declaration
bool Updated { get; set; }
Property Value
UpdateStamp
Declaration
ulong UpdateStamp { get; }
Property Value
ValueAsBoolean
Get the value of the corresponding type
Declaration
bool ValueAsBoolean { get; set; }
Property Value
ValueAsCalculatedString
Value as calculated string
Declaration
string ValueAsCalculatedString { get; }
Property Value
ValueAsDouble
Declaration
double ValueAsDouble { get; set; }
Property Value
ValueAsInteger
Declaration
int ValueAsInteger { get; set; }
Property Value
ValueAsString
Declaration
string ValueAsString { get; set; }
Property Value
Version
XML property version (ReadVer), which may not match the XML type version
Declaration
int Version { get; set; }
Property Value
Methods
AddEventsHandler(string, IST_AbstractPropEventsHandler)
Subscribe to XML property event tracking
Declaration
void AddEventsHandler(string Name, IST_AbstractPropEventsHandler Handler)
Parameters
Assign(IST_XMLPropPointer)
Copy data from another property
Declaration
void Assign(IST_XMLPropPointer Src)
Parameters
AssignHandlers(IST_XMLPropPointer)
Copy event handlers from another similar property
Declaration
void AssignHandlers(IST_XMLPropPointer Src)
Parameters
BeginUpdate()
Declaration
ClearHandlersList()
Declaration
DeleteEventsHandler(string)
Declaration
void DeleteEventsHandler(string Name)
Parameters
Type |
Name |
Description |
string |
Name |
Event name
|
EndUpdate()
Declaration
FindProperty(string)
Declaration
IST_XMLPropPointer FindProperty(string Name)
Parameters
Type |
Name |
Description |
string |
Name |
Property name
|
Returns
FindPropertyInWholeScope(string)
Find property in whole scope
Declaration
IST_XMLPropPointer FindPropertyInWholeScope(string Name)
Parameters
Type |
Name |
Description |
string |
Name |
Property name
|
Returns
ForceCreateChildPropOfName(string)
Force create child property of specified name
Declaration
IST_XMLPropPointer ForceCreateChildPropOfName(string PropName)
Parameters
Type |
Name |
Description |
string |
PropName |
Property name
|
Returns
GetAttributeAsBoolean(string, bool)
Declaration
bool GetAttributeAsBoolean(string Name, bool DefValue)
Parameters
Type |
Name |
Description |
string |
Name |
|
bool |
DefValue |
|
Returns
GetCopy()
Create a copy along with child elements
Declaration
IST_XMLPropPointer GetCopy()
Returns
GetEventsHandler(string)
Declaration
IntPtr GetEventsHandler(string Name)
Parameters
Type |
Name |
Description |
string |
Name |
Event name
|
Returns
Type |
Description |
System.IntPtr |
|
GetExpressionValueAsBoolean(string, bool)
Declaration
bool GetExpressionValueAsBoolean(string Expr, bool DefValue)
Parameters
Type |
Name |
Description |
string |
Expr |
|
bool |
DefValue |
|
Returns
GetExpressionValueAsFloat(string, double)
Declaration
double GetExpressionValueAsFloat(string Expr, double DefValue)
Parameters
Type |
Name |
Description |
string |
Expr |
|
double |
DefValue |
|
Returns
GetExpressionValueAsString(string, string)
Get expression value as string
Declaration
string GetExpressionValueAsString(string Expr, string DefValue)
Parameters
Type |
Name |
Description |
string |
Expr |
Expression
|
string |
DefValue |
Default value
|
Returns
GetFullName(bool)
Declaration
string GetFullName(bool RootNodeToo)
Parameters
Type |
Name |
Description |
bool |
RootNodeToo |
|
Returns
HasArray(string)
Return true, if the property has a child array (IST_PropArray) named Name
Declaration
bool HasArray(string Name)
Parameters
Type |
Name |
Description |
string |
Name |
Child array name
|
Returns
IsArray()
Return true, if the property is an array (IST_PropArray)
Declaration
Returns
IsAttributesSameWithDefaultValue()
Restore the default attributes
Declaration
bool IsAttributesSameWithDefaultValue()
Returns
IsCaseNode()
Return true, if the property is a switchable complex type (IST_XMLPropCaseNode)
Declaration
Returns
IsEq(IST_XMLPropPointer, double, double)
Declaration
bool IsEq(IST_XMLPropPointer p, double LinearTol, double FloatTol)
Parameters
Returns
IsInheritFrom(string)
Is property type a descendant of type TypeName
Declaration
bool IsInheritFrom(string TypeName)
Parameters
Type |
Name |
Description |
string |
TypeName |
Type name
|
Returns
IsSameWithDefaultValue()
Declaration
bool IsSameWithDefaultValue()
Returns
LoadFromDisplacedXMLFile(string, string, string)
Load from displaced XML file
Declaration
void LoadFromDisplacedXMLFile(string AFileName, string OriginalFolder, string OriginalType)
Parameters
Type |
Name |
Description |
string |
AFileName |
XML file name
|
string |
OriginalFolder |
Original folder
|
string |
OriginalType |
Original type
|
LoadFromExistingXMLFile(string, string)
Load from existing XML file
Declaration
void LoadFromExistingXMLFile(string AFileName, string AnXMLNodePath)
Parameters
Type |
Name |
Description |
string |
AFileName |
XML file name
|
string |
AnXMLNodePath |
XML node path
|
LoadFromSingleFileStream(IStream)
Load from single file stream
Declaration
void LoadFromSingleFileStream(IStream Stream)
Parameters
Type |
Name |
Description |
IStream |
Stream |
Stream
|
LoadFromStream(IStream, bool)
Declaration
void LoadFromStream(IStream Stream, bool Compress)
Parameters
Type |
Name |
Description |
IStream |
Stream |
|
bool |
Compress |
|
LoadFromXMLFile(string)
Declaration
void LoadFromXMLFile(string AFileName)
Parameters
Type |
Name |
Description |
string |
AFileName |
XML file name
|
RestoreDefaultValue()
Restore the default value
Declaration
void RestoreDefaultValue()
SaveMarkedToXMLFile(string)
Declaration
void SaveMarkedToXMLFile(string AFileName)
Parameters
Type |
Name |
Description |
string |
AFileName |
XML file name
|
SaveToDisplacedXMLFile(string, string)
Save to displaced XML file
Declaration
void SaveToDisplacedXMLFile(string AFileName, string OriginalFolder)
Parameters
Type |
Name |
Description |
string |
AFileName |
XML file name
|
string |
OriginalFolder |
Original folder
|
SaveToExistingXMLFile(string, string)
Save to existing XML file
Declaration
void SaveToExistingXMLFile(string AFileName, string AnXMLNodePath)
Parameters
Type |
Name |
Description |
string |
AFileName |
XML file name
|
string |
AnXMLNodePath |
XML node path
|
SaveToSingleFileStream(IStream)
Save to single file stream
Declaration
void SaveToSingleFileStream(IStream Stream)
Parameters
Type |
Name |
Description |
IStream |
Stream |
Stream
|
SaveToStream(IStream, bool)
Declaration
void SaveToStream(IStream Stream, bool Compress)
Parameters
Type |
Name |
Description |
IStream |
Stream |
|
bool |
Compress |
|
SaveToXMLFile(string)
Declaration
void SaveToXMLFile(string AFileName)
Parameters
Type |
Name |
Description |
string |
AFileName |
XML file name
|