ZPT-Sharp
v1.0.0
Zope Page Templates for .NET
|
Gets information about a repetition/iteration. More...
Public Member Functions | |
bool | HandleTalesPath (string pathFragment, out object result, IRenderingContext currentContext) |
Gets a specific piece of repeat information by name (a TALES path fragment). More... | |
RepetitionInfo (string name, int index, int count, object value, IZptElement element) | |
Initializes a new instance of the CSF.Zpt.Rendering.RepetitionInfo class. More... | |
Properties | |
IZptElement | AssociatedElement [get] |
Gets a reference to the associated IZptElement, if applicable. More... | |
string | Name [get] |
Gets the name of the repetition. More... | |
int | Count [get] |
Gets the count of items in the repetition. More... | |
int | Index [get] |
Gets the zero-based index for the current repetition. More... | |
object | Value [get] |
Gets the value associated with the current iteration. More... | |
int | Number [get] |
Gets the current 'number' for the current repetition (the Index plus one). More... | |
bool | Even [get] |
True for even-indexed repetitions. More... | |
bool | Odd [get] |
True for odd-indexed repetitions. More... | |
bool | Start [get] |
True for the first repetition (Index equals zero). More... | |
bool | End [get] |
True for the first repetition (Index equals Length minus one). More... | |
int | Length [get] |
Gets the total count of all repetitions. More... | |
string | LowerLetter [get] |
Gets an alphabetic reference for the current item. More... | |
string | UpperLetter [get] |
Gets an alphabetic reference for the current item (uppercase). More... | |
![]() | |
IZptElement | AssociatedElement [get] |
Gets a reference to the associated IZptElement, if applicable. More... | |
object | Value [get] |
Gets the value associated with the current iteration. More... | |
string | Name [get] |
Gets the name of the repetition. More... | |
Gets information about a repetition/iteration.
|
inline |
Initializes a new instance of the CSF.Zpt.Rendering.RepetitionInfo class.
name | Name. |
index | Index. |
count | Count. |
value | Value. |
element | Element. |
|
inline |
Gets a specific piece of repeat information by name (a TALES path fragment).
true
if the path traversal was a success; false
otherwise.pathFragment | The path fragment. |
result | Exposes the result if the traversal was a success |
currentContext | Gets the current rendering context. |
Implements CSF.Zpt.Tales.ITalesPathHandler.
|
get |
Gets a reference to the associated IZptElement, if applicable.
The associated element.
|
get |
Gets the count of items in the repetition.
The count.
|
get |
|
get |
True for even-indexed repetitions.
true
if even; otherwise, false
.
|
get |
Gets the zero-based index for the current repetition.
The index.
|
get |
Gets the total count of all repetitions.
true
if length; otherwise, false
.
|
get |
Gets an alphabetic reference for the current item.
The lowercase-alphabetic reference.
|
get |
Gets the name of the repetition.
The name.
|
get |
Gets the current 'number' for the current repetition (the Index plus one).
The number.
|
get |
True for odd-indexed repetitions.
true
if odd; otherwise, false
.
|
get |
True for the first repetition (Index equals zero).
true
if this is the starting repetition; otherwise, false
.
|
get |
Gets an alphabetic reference for the current item (uppercase).
The uppercase-alphabetic reference.
|
get |
Gets the value associated with the current iteration.
The value.