BooleanEditorAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Indicates that the target property should use a "Boolean" editor.
[AttributeUsage(AttributeTargets.All)]
public class BooleanEditorAttribute : CustomEditorAttribute
Public Members
| name | description |
|---|---|
| BooleanEditorAttribute() | Initializes a new instance of the BooleanEditorAttribute class. |
| LabelPosition { get; set; } | Gets or sets where the caption of the field is, at the start in the caption area by default, or after the checkbox, which is useful for fitting several checkboxes in one row, see CheckLabelPosition. |
| Switch { get; set; } | Gets or sets whether the editor shows a switch instead of a checkbox, e.g. for a setting that turns something on or off. The value is the same boolean. |
| const Key | Editor type key |
See Also
- class CustomEditorAttribute
- Source: BooleanEditorAttribute.cs