Field.TextareaHeigh

Version: - integer  

Summary

Returns the height (lines) of the field of type text area.

Settings

The value is based on the Height field in the Layout settings for the field.

(Modules > Forms for editors > Form > Edit field > Layout > Layout > Height (lines))

Examples

Outputting the template tag

@GetInteger("Field.TextareaHeigh")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Field.TextareaHeigh"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Field.TextareaHeigh"); }

Outputting the template tag

<!--@Field.TextareaHeigh-->

Check if integer has a value

<!--@If Defined(@Field.TextareaHeigh)--> Let's output this tag here: <strong><!--@Field.TextareaHeigh--></strong> <!--@EndIf(@Field.TextareaHeigh)-->