Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TextAttribute.cs
1using System;
2
4{
8 public enum TextPosition
9 {
13 BeforeField,
14
18 AfterField
19 }
20
24 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = true, Inherited = true)]
25 public class TextAttribute : Attribute
26 {
27 private readonly TextPosition position;
28 private readonly int stringId;
29 private readonly string label;
30
37 : this(Position, 0, Label)
38 {
39 }
40
48 {
49 this.position = Position;
50 this.stringId = StringId;
51 this.label = Label;
52 }
53
57 public TextPosition Position => this.position;
58
62 public int StringId => this.stringId;
63
67 public string Label => this.label;
68 }
69}
Shows a text segment associated with the parameter.
TextAttribute(TextPosition Position, string Label)
Shows a text segment associated with the parameter.
string Label
Default label string, in the default language defined for the class.
int StringId
String ID in the namespace of the current class, in the default language defined for the class.
TextAttribute(TextPosition Position, int StringId, string Label)
Shows a text segment associated with the parameter.
TextPosition Position
Where the text is to be placed in relation to the field.
TextPosition
Where the instructions are to be place.
Definition: TextAttribute.cs:9