Class RegisterLinkAttribute
- Namespace
- OFT.Attributes
- Assembly
- OFT.Attributes.dll
Adds a link (for example to register an account with a broker) to the description area of the settings window of a connector or an indicator, after its help link. A class may have several; they are shown by Order.
Added in ATAS 8.0.15.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple = true)]
public class RegisterLinkAttribute : Attribute
- Inheritance
-
objectAttributeRegisterLinkAttribute
- Extension Methods
Constructors
RegisterLinkAttribute(string, string)
Initializes a link with a fixed address and text.
public RegisterLinkAttribute(string url, string text)
Parameters
urlstringThe absolute address of the link.
textstringThe text of the link.
RegisterLinkAttribute(string, Type, string)
Initializes a link with a fixed address and a localized text.
public RegisterLinkAttribute(string url, Type resourceType, string resourceName)
Parameters
urlstringThe absolute address of the link.
resourceTypeTypeThe resource class with the text.
resourceNamestringThe name of the string resource with the text.
RegisterLinkAttribute(Type, string, Type, string)
Initializes a link whose address and text are both read from resources.
public RegisterLinkAttribute(Type urlResourceType, string urlResourceName, Type textResourceType, string textResourceName)
Parameters
urlResourceTypeTypeThe resource class with the address.
urlResourceNamestringThe name of the string resource with the address.
textResourceTypeTypeThe resource class with the text.
textResourceNamestringThe name of the string resource with the text.
Properties
Order
Gets or sets the position of the link among the links of the class; lower values come first.
public int Order { get; set; }
Property Value
- int
Text
Gets the text of the link; read from the resource when the attribute was created with one.
public string Text { get; }
Property Value
- string
Url
Gets the address of the link; read from the resource when the attribute was created with one.
public string Url { get; }
Property Value
- string