Main Content

getAutoNumberStream

Class: mlreportgen.dom.Document
Namespace: mlreportgen.dom

Return numbering stream

Description

example

autoNumStreamOut = getAutoNumberStream(docObj,streamName) returns the specified numbering stream used by the document.

Examples

expand all

import mlreportgen.dom.*;
myReport = Document('mydoc','html');

createAutoNumberStream(myReport,'chapterNum','I',1);
streamOut = getAutoNumberStream(myReport,'chapterNum')
streamOut = 

  AutoNumberStream with properties:

       StreamName: 'chapterNum'
    CharacterType: 'roman'
    CharacterCase: 'upper'
     InitialValue: 1
              Tag: 'dom.AutoNumberStream:500'
               Id: '500'

Input Arguments

expand all

Document that uses the numbering stream, specified as an mlreportgen.dom.Document object.

Name of the numbering stream to return, specified as a character vector.

Output Arguments

expand all

Numbering stream used by the document, represented by an mlreportgen.dom.AutoNumberStream object.

Version History

Introduced in R2014b