Skip to main content

captionRefTo

Available values of the "equation"/"figure"/"table" reference type:

  • "entireCaption"- the entire caption text;
  • "labelNumber" - the label and object number only, e.g. "Table 1.1";
  • "captionText" - the caption text only;
  • "pageNum" - the page number containing the referenced object;
  • "aboveBelow" - the words "above" or "below" depending on the item position.

Type

Enumeration

Values

  • "entireCaption"
  • "labelNumber"
  • "captionText"
  • "pageNum"
  • "aboveBelow"

Example

Add a cross-reference to the page number of a table caption.

// Create a reference to the paragraph with a caption.

// Use caption to create a cross-reference.

paragraph.AddCaptionCrossRef("table", "pageNum", caption);