Main Content

getAutoNumberStream

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

Return numbering stream

Description

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

example

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 or string scalar.

Output Arguments

expand all

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

Version History

Introduced in R2014b