Table of Contents

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
object
Attribute
RegisterLinkAttribute
Extension Methods

Constructors

RegisterLinkAttribute(string, string)

Initializes a link with a fixed address and text.

public RegisterLinkAttribute(string url, string text)

Parameters

url string

The absolute address of the link.

text string

The 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

url string

The absolute address of the link.

resourceType Type

The resource class with the text.

resourceName string

The 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

urlResourceType Type

The resource class with the address.

urlResourceName string

The name of the string resource with the address.

textResourceType Type

The resource class with the text.

textResourceName string

The 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