Table of Contents

Class TextEditorAttribute

Namespace
OFT.Attributes.Editors
Assembly
OFT.Attributes.dll

Represents an attribute that provides additional metadata for controlling text editors.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class TextEditorAttribute : Attribute
Inheritance
object
Attribute
TextEditorAttribute
Extension Methods

Constructors

TextEditorAttribute(bool, int)

Initializes a new instance of the TextEditorAttribute class with the specified settings.

public TextEditorAttribute(bool isMultiline, int maxHeight = 50)

Parameters

isMultiline bool

A value indicating whether the text editor allows multiline input.

maxHeight int

The maximum height of the text editor, in lines. It must be at least 10 lines.

Properties

IsMultiline

Gets a value indicating whether the text editor allows multiline input.

public bool IsMultiline { get; }

Property Value

bool

MaxHeight

Gets the maximum height of the text editor, in lines.

public int MaxHeight { get; }

Property Value

int