Click or drag to resize
Ranorex

AttributeDescriptor Class

A descriptor for element attributes.
Inheritance Hierarchy
SystemObject
  Ranorex.CoreDescriptor
    Ranorex.CoreAttributeDescriptor

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
[SerializableAttribute]
public class AttributeDescriptor : Descriptor

The AttributeDescriptor type exposes the following members.

Constructors
  NameDescription
Public methodAttributeDescriptor(String, String, Type, Int32)
Creates a new (read-only) element attribute descriptor.
Public methodAttributeDescriptor(String, String, Type, Int32, Boolean)
Creates a new element attribute descriptor.
Public methodAttributeDescriptor(String, String, Type, Int32, Boolean, Int32)
Creates a new element attribute descriptor.
Top
Properties
  NameDescription
Public propertyContainer
Gets the capability containing this attribute.
Public propertyDescription
The description of instance the descriptor refers to.
(Inherited from Descriptor.)
Public propertyDisplayName
The name of the instance the descriptor refers to, with arbitrary casing.
(Inherited from Descriptor.)
Public propertyName
The name of the instance the descriptor refers to. This is enforced to be lower-case.
(Inherited from Descriptor.)
Public propertyReadOnly
Gets a value specifying if the attribute value is read-only.
Public propertyTruncationLength
Gets or sets the maximum length of the string representation of an attribute value when used in RxPaths. If the length of the string representation of the attribute value is greater than this value, the string representation is truncated at the next word boundary (extending truncation length up to 100% of the configured value) and converted to a StartsWith expression.
Public propertyValueType
The type of the attribute value. The type should provide a useful ToString() implementation, and additionally, a useful explicit cast from String.
Top
Methods
  NameDescription
Public methodCompareTo
Compares the current descriptor with another descriptor.
(Inherited from Descriptor.)
Public methodEquals(Object)
Determines whether the specified Object is equal to this instance.
(Inherited from Descriptor.)
Public methodEquals(Descriptor)
Indicates whether the current object is equal to another object of the same type.
(Inherited from Descriptor.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns a hash code for this instance.
(Inherited from Descriptor.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodResolveWeight
Resolves the weight.
Public methodToString
Creates a string representation.
(Inherited from Descriptor.)
Top
Events
  NameDescription
Public eventStatic memberGlobalWeightResolving
Occurs when the weight for any registered attribute needs to be resolved. Intended to be used by plugins to dynamically change weights based on context.
Public eventWeightResolving
Occurs when the weight for this attribute needs to be resolved. Intended to be used by plugins to dynamically change weights based on context.
Top
See Also