Class ScriptBrowsableAttribute
Attribute alow to specify which element of class accessable for Script engine edit control can be show in model tree.
Inheritance
System.Object
ScriptBrowsableAttribute
Namespace: Syncfusion.Scripting
Assembly: Syncfusion.Scripting.Base.dll
Syntax
public class ScriptBrowsableAttribute : Attribute
Constructors
ScriptBrowsableAttribute(PropertyType, String)
Using this constructor for mark "Item" class
Declaration
public ScriptBrowsableAttribute(PropertyType property, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyType | property | Type property - must be equal PropertyType.Item |
| System.String | name | Name of property that using for showing name of Item. |
ScriptBrowsableAttribute(PropertyType, Type)
Using this constructor for mark "Colleciton" property
Declaration
public ScriptBrowsableAttribute(PropertyType property, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyType | property | |
| System.Type | type |
ScriptBrowsableAttribute(PropertyType, Type, String)
Declaration
public ScriptBrowsableAttribute(PropertyType property, Type type, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyType | property | |
| System.Type | type | |
| System.String | name |
ScriptBrowsableAttribute(Boolean)
Main constructor for our own use
Declaration
public ScriptBrowsableAttribute(bool visible)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | visible | True - element of class is visible to ScriptEditControl, otherwise False |
Properties
IsVisible
Indicated whether class property is visible
Declaration
public bool IsVisible { get; }
Property Value
| Type |
|---|
| System.Boolean |
Name
Gets the name of property that using for showing name of Item. Readonly
Declaration
public string Name { get; }
Property Value
| Type |
|---|
| System.String |
PropertyType
Indicated way for show property. Readonly
Declaration
public PropertyType PropertyType { get; }
Property Value
| Type |
|---|
| PropertyType |
Methods
GetFromMemberInfo(MemberInfo)
Declaration
public static ScriptBrowsableAttribute GetFromMemberInfo(MemberInfo info)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.MemberInfo | info |
Returns
| Type |
|---|
| ScriptBrowsableAttribute |
GetItemNameProperty()
Declaration
public PropertyInfo GetItemNameProperty()
Returns
| Type |
|---|
| System.Reflection.PropertyInfo |