Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ToolTipAttribute.cs
1using System;
2
4{
8 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
9 public class ToolTipAttribute : Attribute
10 {
11 private readonly int stringId;
12 private readonly string tooltip;
13
19 : this(0, ToolTip)
20 {
21 }
22
28 public ToolTipAttribute(int StringId, string ToolTip)
29 {
30 this.stringId = StringId;
31 this.tooltip = ToolTip;
32 }
33
37 public int StringId => this.stringId;
38
42 public string ToolTip => this.tooltip;
43 }
44}
Defines a localizable tooltip string for the property.
ToolTipAttribute(string ToolTip)
Defines a tooltip string for the property.
int StringId
String ID in the namespace of the current class, in the default language defined for the class.
ToolTipAttribute(int StringId, string ToolTip)
Defines a localizable tooltip string for the property.
string ToolTip
Default tooltip string, in the default language defined for the class.