ZPT-Sharp  v1.0.0
Zope Page Templates for .NET
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
CSF.Zpt.Rendering.RepetitionInfo Class Reference

Gets information about a repetition/iteration. More...

Inheritance diagram for CSF.Zpt.Rendering.RepetitionInfo:
Collaboration diagram for CSF.Zpt.Rendering.RepetitionInfo:

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...
 
- Properties inherited from CSF.Zpt.Rendering.IRepetitionInfo
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...
 

Detailed Description

Gets information about a repetition/iteration.

Constructor & Destructor Documentation

CSF.Zpt.Rendering.RepetitionInfo.RepetitionInfo ( string  name,
int  index,
int  count,
object  value,
IZptElement  element 
)
inline

Initializes a new instance of the CSF.Zpt.Rendering.RepetitionInfo class.

Parameters
nameName.
indexIndex.
countCount.
valueValue.
elementElement.

Member Function Documentation

bool CSF.Zpt.Rendering.RepetitionInfo.HandleTalesPath ( string  pathFragment,
out object  result,
IRenderingContext  currentContext 
)
inline

Gets a specific piece of repeat information by name (a TALES path fragment).

Returns
true if the path traversal was a success; false otherwise.
Parameters
pathFragmentThe path fragment.
resultExposes the result if the traversal was a success
currentContextGets the current rendering context.

Implements CSF.Zpt.Tales.ITalesPathHandler.

Property Documentation

IZptElement CSF.Zpt.Rendering.RepetitionInfo.AssociatedElement
get

Gets a reference to the associated IZptElement, if applicable.

The associated element.

int CSF.Zpt.Rendering.RepetitionInfo.Count
get

Gets the count of items in the repetition.

The count.

bool CSF.Zpt.Rendering.RepetitionInfo.End
get

True for the first repetition (Index equals Length minus one).

true if this is the last repetition; otherwise, false.

bool CSF.Zpt.Rendering.RepetitionInfo.Even
get

True for even-indexed repetitions.

true if even; otherwise, false.

int CSF.Zpt.Rendering.RepetitionInfo.Index
get

Gets the zero-based index for the current repetition.

The index.

int CSF.Zpt.Rendering.RepetitionInfo.Length
get

Gets the total count of all repetitions.

true if length; otherwise, false.

string CSF.Zpt.Rendering.RepetitionInfo.LowerLetter
get

Gets an alphabetic reference for the current item.

The lowercase-alphabetic reference.

string CSF.Zpt.Rendering.RepetitionInfo.Name
get

Gets the name of the repetition.

The name.

int CSF.Zpt.Rendering.RepetitionInfo.Number
get

Gets the current 'number' for the current repetition (the Index plus one).

The number.

bool CSF.Zpt.Rendering.RepetitionInfo.Odd
get

True for odd-indexed repetitions.

true if odd; otherwise, false.

bool CSF.Zpt.Rendering.RepetitionInfo.Start
get

True for the first repetition (Index equals zero).

true if this is the starting repetition; otherwise, false.

string CSF.Zpt.Rendering.RepetitionInfo.UpperLetter
get

Gets an alphabetic reference for the current item (uppercase).

The uppercase-alphabetic reference.

object CSF.Zpt.Rendering.RepetitionInfo.Value
get

Gets the value associated with the current iteration.

The value.


The documentation for this class was generated from the following file: