Description
The NotEditable
field is a member of the ComponentFlags
enumeration in the Sandbox API. It is used to specify that a component cannot be edited in the component inspector. This flag is useful for components that should remain unchanged during the editing process, ensuring that their properties are not accidentally modified.
Usage
Use the NotEditable
flag when you want to prevent a component from being modified in the component inspector. This is particularly useful for components that are critical to the functionality of your application and should not be altered by users or developers during the design phase.
Example
// Example of using the NotEditable flag
public class MyComponent : Component
{
public MyComponent()
{
// Set the component flags to NotEditable
this.Flags = ComponentFlags.NotEditable;
}
}