Returns the width of the image.
The value is generated automatically.
Outputting the template tag
@GetInteger("Gallery.Image.Width")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Gallery.Image.Width"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Gallery.Image.Width");
}
Outputting the template tag
<!--@Gallery.Image.Width-->
Check if integer has a value
<!--@If Defined(@Gallery.Image.Width)-->