iText 8.0.2 API
iText.Commons.Actions.Sequence.SequenceIdManager Class Reference

Util class which is responsible for marking of AbstractIdentifiableElement with appropriate SequenceId. More...

Static Public Member Functions

static void  SetSequenceId (AbstractIdentifiableElement element, SequenceId sequenceId)
  Provides an AbstractIdentifiableElement with a SequenceId. More...
 
static SequenceId  GetSequenceId (AbstractIdentifiableElement element)
  Gets an identifier of the element. More...
 

Detailed Description

Util class which is responsible for marking of AbstractIdentifiableElement with appropriate SequenceId.

Member Function Documentation

◆ GetSequenceId()

static SequenceId iText.Commons.Actions.Sequence.SequenceIdManager.GetSequenceId ( AbstractIdentifiableElement  element )
inlinestatic

Gets an identifier of the element.

Gets an identifier of the element. If it was not provided will return null.

Parameters
element is an identifiable element
Returns
the identifier of the element if presented and null otherwise

◆ SetSequenceId()

static void iText.Commons.Actions.Sequence.SequenceIdManager.SetSequenceId ( AbstractIdentifiableElement  element,
SequenceId  sequenceId 
)
inlinestatic

Provides an AbstractIdentifiableElement with a SequenceId.

Provides an AbstractIdentifiableElement with a SequenceId . Note that it is forbidden to override already existing identifier. If try to provide a new one then exception will be thrown.

Parameters
element is an identifiable element
sequenceId is an identifier to set