Package com.independentsoft.office.word
Class Run
java.lang.Object
com.independentsoft.office.word.Run
- All Implemented Interfaces:
IContentElement,IContentRunContent,IParagraphContent,IRunTrackChangeContent
The Class Run.
-
Constructor Summary
ConstructorsConstructorDescriptionRun()Instantiates a new run.Run(InternalXMLStreamReader reader)Instantiates a new run.Instantiates a new run. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(CommentReference commentReference)Adds the.voidadd(DrawingObject drawingObject)Adds the.voidadd(EmbeddedObject embeddedObject)Adds the.voidadd(ComplexField complexField)Adds the.voidadd(EndnoteReference endnoteReference)Adds the.voidadd(FootnoteReference footnoteReference)Adds the.voidadd(IRunContent runContent)Adds the.voidAdds the.voidAdds the absolute position tab.voidaddAbsolutePositionTab(AbsolutePositionTabAlignment alignment)Adds the absolute position tab.voidaddAbsolutePositionTab(AbsolutePositionTabAlignment alignment, AbsolutePositionTabPositioningBase relativeTo)Adds the absolute position tab.voidaddAbsolutePositionTab(AbsolutePositionTabAlignment alignment, AbsolutePositionTabPositioningBase relativeTo, AbsolutePositionTabLeader leader)Adds the absolute position tab.voidAdds the annotation reference.voidaddBreak()Adds the break.voidaddBreak(BreakClear clear)Adds the break.voidAdds the break.voidaddBreak(BreakType type, BreakClear clear)Adds the break.voidAdds the carriage return.voidAdds the continuation separator.voidaddDeletedText(DeletedText deletedText)Adds the deleted text.voidaddDeletedText(String text)Adds the deleted text.voidAdds the endnote reference mark.voidAdds the footnote endnote separator.voidAdds the footnote reference mark.voidAdds the last rendered page break.voidAdds the non breaking hyphen.voidAdds the page number block.voidAdds the soft hyphen.voidAdds the symbol.voidaddTab()Adds the tab.voidaddTab(int position)Adds the tab.voidAdds the tab.voidaddTab(int position, TabType type, TabLeaderCharacter leader)Adds the tab.voidAdds the text.voidAdds the text.clone()Gets the ascii font.Gets the ascii theme font.getBold()Gets the bold.Gets the border.Gets the capital letters.getColor()Gets the color.Gets the complex script bold.Gets the complex script font.intGets the complex script font size.Gets the complex script italic.Gets the complex script theme font.Gets the content.Gets the deletion revision id.Gets the double strikethrough.Gets the east asia font.Gets the east asian layout.Gets the east asia theme font.Gets the emboss.Gets the emphasis mark.intGets the font kern.getFonts()Gets the fonts.intGets the font size.Gets the font type hint.Gets the hidden paragraph mark.Gets the hidden text.Gets the high ansi font.Gets the high ansi theme font.Gets the highlight color.Gets the imprint.Gets the italic.Gets the language.Gets the manual width.getMath()Gets the math.Gets the no proof.Gets the outline.intGets the position.Gets the properties revision id.Gets the revision.Gets the revision id.Gets the right to left.Gets the shading.Gets the shadow.Gets the single strikethrough.Gets the small caps.Gets the snap to grid.intGets the spacing.Gets the style name.Gets the text effect.intGets the text scale.Gets the underline.Gets the use complex script formating.Gets the vertical alignment.Gets the web hidden text.voidsetAsciiFont(String font)Sets the ascii font.voidsetAsciiThemeFont(ThemeFont font)Sets the ascii theme font.voidsetBold(ExtendedBoolean bold)Sets the bold.voidSets the border.voidsetCapitalLetters(ExtendedBoolean capitalLetters)Sets the capital letters.voidsetColor(RunContentColor color)Sets the color.voidsetComplexScriptBold(ExtendedBoolean complexScriptBold)Sets the complex script bold.voidsetComplexScriptFont(String font)Sets the complex script font.voidsetComplexScriptFontSize(int complexScriptFontSize)Sets the complex script font size.voidsetComplexScriptItalic(ExtendedBoolean complexScriptItalic)Sets the complex script italic.voidSets the complex script theme font.voidsetDeletionRevisionID(String deletionRevisionID)Sets the deletion revision id.voidsetDoubleStrikethrough(ExtendedBoolean doubleStrikethrough)Sets the double strikethrough.voidsetEastAsiaFont(String font)Sets the east asia font.voidsetEastAsianLayout(EastAsianLayout eastAsianLayout)Sets the east asian layout.voidsetEastAsiaThemeFont(ThemeFont font)Sets the east asia theme font.voidsetEmboss(ExtendedBoolean emboss)Sets the emboss.voidsetEmphasisMark(EmphasisMarkType emphasisMark)Sets the emphasis mark.voidsetFontKern(int fontKern)Sets the font kern.voidSets the fonts.voidsetFontSize(int fontSize)Sets the font size.voidsetFontTypeHint(FontTypeHint font)Sets the font type hint.voidsetHiddenParagraphMark(ExtendedBoolean hiddenParagraphMark)Sets the hidden paragraph mark.voidsetHiddenText(ExtendedBoolean hiddenText)Sets the hidden text.voidsetHighAnsiFont(String font)Sets the high ansi font.voidsetHighAnsiThemeFont(ThemeFont font)Sets the high ansi theme font.voidsetHighlightColor(HighlightColor highlightColor)Sets the highlight color.voidsetImprint(ExtendedBoolean imprint)Sets the imprint.voidsetItalic(ExtendedBoolean italic)Sets the italic.voidsetLanguage(Language language)Sets the language.voidsetManualWidth(ManualRunWidth manualWidth)Sets the manual width.voidsetMath(ExtendedBoolean math)Sets the math.voidsetNoProof(ExtendedBoolean noProof)Sets the no proof.voidsetOutline(ExtendedBoolean outline)Sets the outline.voidsetPosition(int position)Sets the position.voidsetPropertiesRevisionID(String propertiesRevisionID)Sets the properties revision id.voidsetRevision(RunPropertiesRevision revision)Sets the revision.voidsetRevisionID(String revisionID)Sets the revision id.voidsetRightToLeft(ExtendedBoolean rightToLeft)Sets the right to left.voidsetShading(Shading shading)Sets the shading.voidsetShadow(ExtendedBoolean shadow)Sets the shadow.voidsetSingleStrikethrough(ExtendedBoolean singleStrikethrough)Sets the single strikethrough.voidsetSmallCaps(ExtendedBoolean smallCaps)Sets the small caps.voidsetSnapToGrid(ExtendedBoolean snapToGrid)Sets the snap to grid.voidsetSpacing(int spacing)Sets the spacing.voidsetStyleName(String styleName)Sets the style name.voidsetTextEffect(TextEffect textEffect)Sets the text effect.voidsetTextScale(int textScale)Sets the text scale.voidsetUnderline(Underline underline)Sets the underline.voidsetUseComplexScriptFormating(ExtendedBoolean useComplexScriptFormating)Sets the use complex script formating.voidsetVerticalAlignment(VerticalAlignment verticalAlignment)Sets the vertical alignment.voidsetWebHiddenText(ExtendedBoolean webHiddenText)Sets the web hidden text.toString()
-
Constructor Details
-
Run
public Run()Instantiates a new run. -
Run
Instantiates a new run.- Parameters:
text- the text
-
Run
Instantiates a new run.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
addText
Adds the text.- Parameters:
text- the text
-
addText
Adds the text.- Parameters:
text- the textpreserveSpace- the preserve space
-
add
Adds the.- Parameters:
drawingObject- the drawing object
-
add
Adds the.- Parameters:
vmlObject- the vml object
-
add
Adds the.- Parameters:
embeddedObject- the embedded object
-
add
Adds the.- Parameters:
complexField- the complex field
-
add
Adds the.- Parameters:
commentReference- the comment reference
-
add
Adds the.- Parameters:
footnoteReference- the footnote reference
-
add
Adds the.- Parameters:
endnoteReference- the endnote reference
-
addNonBreakingHyphen
public void addNonBreakingHyphen()Adds the non breaking hyphen. -
addSoftHyphen
public void addSoftHyphen()Adds the soft hyphen. -
addContinuationSeparator
public void addContinuationSeparator()Adds the continuation separator. -
addFootnoteEndnoteSeparator
public void addFootnoteEndnoteSeparator()Adds the footnote endnote separator. -
addAnnotationReference
public void addAnnotationReference()Adds the annotation reference. -
addFootnoteReferenceMark
public void addFootnoteReferenceMark()Adds the footnote reference mark. -
addEndnoteReferenceMark
public void addEndnoteReferenceMark()Adds the endnote reference mark. -
addDeletedText
Adds the deleted text.- Parameters:
text- the text
-
addDeletedText
Adds the deleted text.- Parameters:
deletedText- the deleted text
-
addBreak
public void addBreak()Adds the break. -
addBreak
Adds the break.- Parameters:
type- the type
-
addBreak
Adds the break.- Parameters:
clear- the clear
-
addBreak
Adds the break.- Parameters:
type- the typeclear- the clear
-
addCarriageReturn
public void addCarriageReturn()Adds the carriage return. -
addPageNumberBlock
public void addPageNumberBlock()Adds the page number block. -
addLastRenderedPageBreak
public void addLastRenderedPageBreak()Adds the last rendered page break. -
addAbsolutePositionTab
public void addAbsolutePositionTab()Adds the absolute position tab. -
addAbsolutePositionTab
Adds the absolute position tab.- Parameters:
alignment- the alignment
-
addAbsolutePositionTab
public void addAbsolutePositionTab(AbsolutePositionTabAlignment alignment, AbsolutePositionTabPositioningBase relativeTo)Adds the absolute position tab.- Parameters:
alignment- the alignmentrelativeTo- the relative to
-
addAbsolutePositionTab
public void addAbsolutePositionTab(AbsolutePositionTabAlignment alignment, AbsolutePositionTabPositioningBase relativeTo, AbsolutePositionTabLeader leader)Adds the absolute position tab.- Parameters:
alignment- the alignmentrelativeTo- the relative toleader- the leader
-
addSymbol
Adds the symbol.- Parameters:
character- the characterfont- the font
-
addTab
public void addTab()Adds the tab. -
addTab
public void addTab(int position)Adds the tab.- Parameters:
position- the position
-
addTab
Adds the tab.- Parameters:
position- the positiontype- the type
-
addTab
Adds the tab.- Parameters:
position- the positiontype- the typeleader- the leader
-
add
Adds the.- Parameters:
runContent- the run content
-
getContentElements
- Specified by:
getContentElementsin interfaceIContentElement
-
clone
- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIContentRunContent- Specified by:
clonein interfaceIParagraphContent- Specified by:
clonein interfaceIRunTrackChangeContent- Overrides:
clonein classObject
-
toString
-
getContent
Gets the content.- Returns:
- the content
-
getDeletionRevisionID
Gets the deletion revision id.- Returns:
- the deletion revision id
-
setDeletionRevisionID
Sets the deletion revision id.- Parameters:
deletionRevisionID- the new deletion revision id
-
getRevisionID
Gets the revision id.- Returns:
- the revision id
-
setRevisionID
Sets the revision id.- Parameters:
revisionID- the new revision id
-
getPropertiesRevisionID
Gets the properties revision id.- Returns:
- the properties revision id
-
setPropertiesRevisionID
Sets the properties revision id.- Parameters:
propertiesRevisionID- the new properties revision id
-
getBold
Gets the bold.- Returns:
- the bold
-
setBold
Sets the bold.- Parameters:
bold- the new bold
-
getComplexScriptBold
Gets the complex script bold.- Returns:
- the complex script bold
-
setComplexScriptBold
Sets the complex script bold.- Parameters:
complexScriptBold- the new complex script bold
-
getItalic
Gets the italic.- Returns:
- the italic
-
setItalic
Sets the italic.- Parameters:
italic- the new italic
-
getSnapToGrid
Gets the snap to grid.- Returns:
- the snap to grid
-
setSnapToGrid
Sets the snap to grid.- Parameters:
snapToGrid- the new snap to grid
-
getSmallCaps
Gets the small caps.- Returns:
- the small caps
-
setSmallCaps
Sets the small caps.- Parameters:
smallCaps- the new small caps
-
getShadow
Gets the shadow.- Returns:
- the shadow
-
setShadow
Sets the shadow.- Parameters:
shadow- the new shadow
-
getRightToLeft
Gets the right to left.- Returns:
- the right to left
-
setRightToLeft
Sets the right to left.- Parameters:
rightToLeft- the new right to left
-
getImprint
Gets the imprint.- Returns:
- the imprint
-
setImprint
Sets the imprint.- Parameters:
imprint- the new imprint
-
getOutline
Gets the outline.- Returns:
- the outline
-
setOutline
Sets the outline.- Parameters:
outline- the new outline
-
getMath
Gets the math.- Returns:
- the math
-
setMath
Sets the math.- Parameters:
math- the new math
-
getNoProof
Gets the no proof.- Returns:
- the no proof
-
setNoProof
Sets the no proof.- Parameters:
noProof- the new no proof
-
getComplexScriptItalic
Gets the complex script italic.- Returns:
- the complex script italic
-
setComplexScriptItalic
Sets the complex script italic.- Parameters:
complexScriptItalic- the new complex script italic
-
getBorder
Gets the border.- Returns:
- the border
-
setBorder
Sets the border.- Parameters:
border- the new border
-
getCapitalLetters
Gets the capital letters.- Returns:
- the capital letters
-
setCapitalLetters
Sets the capital letters.- Parameters:
capitalLetters- the new capital letters
-
getColor
Gets the color.- Returns:
- the color
-
setColor
Sets the color.- Parameters:
color- the new color
-
getUseComplexScriptFormating
Gets the use complex script formating.- Returns:
- the use complex script formating
-
setUseComplexScriptFormating
Sets the use complex script formating.- Parameters:
useComplexScriptFormating- the new use complex script formating
-
getHiddenText
Gets the hidden text.- Returns:
- the hidden text
-
setHiddenText
Sets the hidden text.- Parameters:
hiddenText- the new hidden text
-
getWebHiddenText
Gets the web hidden text.- Returns:
- the web hidden text
-
setWebHiddenText
Sets the web hidden text.- Parameters:
webHiddenText- the new web hidden text
-
getHiddenParagraphMark
Gets the hidden paragraph mark.- Returns:
- the hidden paragraph mark
-
setHiddenParagraphMark
Sets the hidden paragraph mark.- Parameters:
hiddenParagraphMark- the new hidden paragraph mark
-
getDoubleStrikethrough
Gets the double strikethrough.- Returns:
- the double strikethrough
-
setDoubleStrikethrough
Sets the double strikethrough.- Parameters:
doubleStrikethrough- the new double strikethrough
-
getSingleStrikethrough
Gets the single strikethrough.- Returns:
- the single strikethrough
-
setSingleStrikethrough
Sets the single strikethrough.- Parameters:
singleStrikethrough- the new single strikethrough
-
getEmboss
Gets the emboss.- Returns:
- the emboss
-
setEmboss
Sets the emboss.- Parameters:
emboss- the new emboss
-
getFontSize
public int getFontSize()Gets the font size.- Returns:
- the font size
-
setFontSize
public void setFontSize(int fontSize)Sets the font size.- Parameters:
fontSize- the new font size
-
getTextScale
public int getTextScale()Gets the text scale.- Returns:
- the text scale
-
setTextScale
public void setTextScale(int textScale)Sets the text scale.- Parameters:
textScale- the new text scale
-
getStyleName
Gets the style name.- Returns:
- the style name
-
setStyleName
Sets the style name.- Parameters:
styleName- the new style name
-
getPosition
public int getPosition()Gets the position.- Returns:
- the position
-
setPosition
public void setPosition(int position)Sets the position.- Parameters:
position- the new position
-
getComplexScriptFontSize
public int getComplexScriptFontSize()Gets the complex script font size.- Returns:
- the complex script font size
-
setComplexScriptFontSize
public void setComplexScriptFontSize(int complexScriptFontSize)Sets the complex script font size.- Parameters:
complexScriptFontSize- the new complex script font size
-
getUnderline
Gets the underline.- Returns:
- the underline
-
setUnderline
Sets the underline.- Parameters:
underline- the new underline
-
getVerticalAlignment
Gets the vertical alignment.- Returns:
- the vertical alignment
-
setVerticalAlignment
Sets the vertical alignment.- Parameters:
verticalAlignment- the new vertical alignment
-
getEastAsianLayout
Gets the east asian layout.- Returns:
- the east asian layout
-
setEastAsianLayout
Sets the east asian layout.- Parameters:
eastAsianLayout- the new east asian layout
-
getTextEffect
Gets the text effect.- Returns:
- the text effect
-
setTextEffect
Sets the text effect.- Parameters:
textEffect- the new text effect
-
getEmphasisMark
Gets the emphasis mark.- Returns:
- the emphasis mark
-
setEmphasisMark
Sets the emphasis mark.- Parameters:
emphasisMark- the new emphasis mark
-
getManualWidth
Gets the manual width.- Returns:
- the manual width
-
setManualWidth
Sets the manual width.- Parameters:
manualWidth- the new manual width
-
getHighlightColor
Gets the highlight color.- Returns:
- the highlight color
-
setHighlightColor
Sets the highlight color.- Parameters:
highlightColor- the new highlight color
-
getFontKern
public int getFontKern()Gets the font kern.- Returns:
- the font kern
-
setFontKern
public void setFontKern(int fontKern)Sets the font kern.- Parameters:
fontKern- the new font kern
-
getLanguage
Gets the language.- Returns:
- the language
-
setLanguage
Sets the language.- Parameters:
language- the new language
-
getAsciiFont
Gets the ascii font.- Returns:
- the ascii font
-
setAsciiFont
Sets the ascii font.- Parameters:
font- the new ascii font
-
getAsciiThemeFont
Gets the ascii theme font.- Returns:
- the ascii theme font
-
setAsciiThemeFont
Sets the ascii theme font.- Parameters:
font- the new ascii theme font
-
getComplexScriptFont
Gets the complex script font.- Returns:
- the complex script font
-
setComplexScriptFont
Sets the complex script font.- Parameters:
font- the new complex script font
-
getComplexScriptThemeFont
Gets the complex script theme font.- Returns:
- the complex script theme font
-
setComplexScriptThemeFont
Sets the complex script theme font.- Parameters:
font- the new complex script theme font
-
getEastAsiaFont
Gets the east asia font.- Returns:
- the east asia font
-
setEastAsiaFont
Sets the east asia font.- Parameters:
font- the new east asia font
-
getEastAsiaThemeFont
Gets the east asia theme font.- Returns:
- the east asia theme font
-
setEastAsiaThemeFont
Sets the east asia theme font.- Parameters:
font- the new east asia theme font
-
getHighAnsiFont
Gets the high ansi font.- Returns:
- the high ansi font
-
setHighAnsiFont
Sets the high ansi font.- Parameters:
font- the new high ansi font
-
getHighAnsiThemeFont
Gets the high ansi theme font.- Returns:
- the high ansi theme font
-
setHighAnsiThemeFont
Sets the high ansi theme font.- Parameters:
font- the new high ansi theme font
-
getFontTypeHint
Gets the font type hint.- Returns:
- the font type hint
-
setFontTypeHint
Sets the font type hint.- Parameters:
font- the new font type hint
-
getFonts
Gets the fonts.- Returns:
- the fonts
-
setFonts
Sets the fonts.- Parameters:
fonts- the new fonts
-
getSpacing
public int getSpacing()Gets the spacing.- Returns:
- the spacing
-
setSpacing
public void setSpacing(int spacing)Sets the spacing.- Parameters:
spacing- the new spacing
-
getShading
Gets the shading.- Returns:
- the shading
-
setShading
Sets the shading.- Parameters:
shading- the new shading
-
getRevision
Gets the revision.- Returns:
- the revision
-
setRevision
Sets the revision.- Parameters:
revision- the new revision
-