@Beta public class XDDFTextRun extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
XDDFTextRun(org.openxmlformats.schemas.drawingml.x2006.main.CTRegularTextRun run, XDDFTextParagraph parent) |
protected |
XDDFTextRun(org.openxmlformats.schemas.drawingml.x2006.main.CTTextField run, XDDFTextParagraph parent) |
protected |
XDDFTextRun(org.openxmlformats.schemas.drawingml.x2006.main.CTTextLineBreak run, XDDFTextParagraph parent) |
Modifier and Type | Method and Description |
---|---|
XDDFHyperlink |
createMouseOver(java.lang.String action) |
java.util.Locale |
getAlternativeLanguage() |
java.lang.String |
getBookmark() |
CapsType |
getCapitals() |
java.lang.Double |
getCharacterKerning() |
java.lang.Double |
getCharacterSpacing() |
java.lang.Boolean |
getDirty() |
XDDFColor |
getFontColor() |
XDDFFont[] |
getFonts() |
java.lang.Double |
getFontSize() |
XDDFColor |
getHighlight() |
XDDFHyperlink |
getHyperlink() |
java.util.Locale |
getLanguage() |
XDDFLineProperties |
getLineProperties() |
XDDFHyperlink |
getMouseOver() |
java.lang.Boolean |
getNoProof() |
java.lang.Boolean |
getNormalizeHeights() |
XDDFTextParagraph |
getParentParagraph() |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties |
getProperties() |
java.lang.Boolean |
getSpellError() |
StrikeType |
getStrikeThrough() |
java.lang.String |
getText() |
UnderlineType |
getUnderline() |
boolean |
isBold() |
boolean |
isCapitals() |
boolean |
isField() |
boolean |
isItalic() |
boolean |
isKumimoji() |
boolean |
isLineBreak() |
boolean |
isRegularRun() |
boolean |
isStrikeThrough() |
boolean |
isSubscript() |
boolean |
isSuperscript() |
boolean |
isUnderline() |
XDDFHyperlink |
linkToAction(java.lang.String action) |
XDDFHyperlink |
linkToExternal(java.lang.String url, PackagePart localPart, POIXMLRelation relation) |
XDDFHyperlink |
linkToInternal(java.lang.String action, PackagePart localPart, POIXMLRelation relation, PackagePartName target) |
void |
setAlternativeLanguage(java.util.Locale lang) |
void |
setBaseline(java.lang.Double offset)
Set the baseline for both the superscript and subscript fonts.
(为上标和下标字体设置基线。)
|
void |
setBold(java.lang.Boolean bold)
Specifies whether this run of text will be formatted as bold text.
(指定此文本运行是否将格式化为粗体文本。)
|
void |
setBookmark(java.lang.String bookmark) |
void |
setCapitals(CapsType caps) |
void |
setCharacterKerning(java.lang.Double kerning)
Set the kerning of characters within a text run.
(设置文本运行中字符的字距。)
|
void |
setCharacterSpacing(java.lang.Double spacing)
Set the spacing between characters within a text run.
(设置文本运行中字符之间的间距。)
|
void |
setDirty(java.lang.Boolean dirty) |
void |
setFillProperties(XDDFFillProperties properties) |
void |
setFontColor(XDDFColor color) |
void |
setFonts(XDDFFont[] fonts)
Note: In order to get fonts to unset the property for a given font family use
XDDFFont.unsetFontForGroup(FontGroup)
(注意:为了让字体取消设置给定字体系列的属性,请使用 XDDFFont.unsetFontForGroup(FontGroup))
|
void |
setFontSize(java.lang.Double size) |
void |
setHighlight(XDDFColor color) |
void |
setItalic(java.lang.Boolean italic) |
void |
setKumimoji(java.lang.Boolean kumimoji) |
void |
setLanguage(java.util.Locale lang) |
void |
setLineProperties(XDDFLineProperties properties) |
void |
setNoProof(java.lang.Boolean noproof) |
void |
setNormalizeHeights(java.lang.Boolean normalize) |
void |
setSpellError(java.lang.Boolean error) |
void |
setStrikeThrough(StrikeType strike) |
void |
setSubscript(java.lang.Double offset)
Set whether the text in this run is formatted as subscript.
(设置本次运行中的文本是否格式化为下标。)
|
void |
setSuperscript(java.lang.Double offset)
Set whether the text in this run is formatted as superscript.
(设置本次运行中的文本是否格式化为上标。)
|
void |
setText(java.lang.String text) |
void |
setUnderline(UnderlineType underline) |
@Internal protected XDDFTextRun(org.openxmlformats.schemas.drawingml.x2006.main.CTTextLineBreak run, XDDFTextParagraph parent)
@Internal protected XDDFTextRun(org.openxmlformats.schemas.drawingml.x2006.main.CTTextField run, XDDFTextParagraph parent)
@Internal protected XDDFTextRun(org.openxmlformats.schemas.drawingml.x2006.main.CTRegularTextRun run, XDDFTextParagraph parent)
public XDDFTextParagraph getParentParagraph()
public boolean isLineBreak()
public boolean isField()
public boolean isRegularRun()
public java.lang.String getText()
public void setText(java.lang.String text)
public void setDirty(java.lang.Boolean dirty)
public java.lang.Boolean getDirty()
public void setSpellError(java.lang.Boolean error)
public java.lang.Boolean getSpellError()
public void setNoProof(java.lang.Boolean noproof)
public java.lang.Boolean getNoProof()
public void setNormalizeHeights(java.lang.Boolean normalize)
public java.lang.Boolean getNormalizeHeights()
public void setKumimoji(java.lang.Boolean kumimoji)
public boolean isKumimoji()
public void setBold(java.lang.Boolean bold)
bold
- whether this run of text will be formatted as bold text.
(粗体 - 此行文本是否将被格式化为粗体文本。)
public boolean isBold()
public void setItalic(java.lang.Boolean italic)
italic
- whether this run of text is formatted as italic text.
(italic - 这段文本是否被格式化为斜体文本。)
public boolean isItalic()
public void setStrikeThrough(StrikeType strike)
strike
- which strike style this run of text is formatted with.
(罢工 - 此行文本格式化的罢工风格。)
public boolean isStrikeThrough()
public StrikeType getStrikeThrough()
public void setUnderline(UnderlineType underline)
underline
- which underline style this run of text is formatted with.
(下划线 - 这段文本的下划线样式。)
public boolean isUnderline()
public UnderlineType getUnderline()
public void setCapitals(CapsType caps)
caps
- which caps style this run of text is formatted with.
(caps - 此行文本格式的大写样式。)
public boolean isCapitals()
public CapsType getCapitals()
public boolean isSubscript()
public boolean isSuperscript()
public void setBaseline(java.lang.Double offset)
The size is specified using a percentage. Positive values indicate superscript, negative values indicate subscript.
(为上标和下标字体设置基线。使用百分比指定大小。正值表示上标,负值表示下标。)offset
-
(抵消 -)
public void setSuperscript(java.lang.Double offset)
The size is specified using a percentage.
(设置本次运行中的文本是否格式化为上标。使用百分比指定大小。)offset
-
(抵消 -)
public void setSubscript(java.lang.Double offset)
The size is specified using a percentage.
(设置本次运行中的文本是否格式化为下标。使用百分比指定大小。)offset
-
(抵消 -)
public void setFillProperties(XDDFFillProperties properties)
public void setFontColor(XDDFColor color)
public XDDFColor getFontColor()
public void setFonts(XDDFFont[] fonts)
XDDFFont.unsetFontForGroup(FontGroup)
(注意:为了让字体取消设置给定字体系列的属性,请使用 XDDFFont.unsetFontForGroup(FontGroup))
fonts
- to set or unset on the run.
(字体 - 在运行时设置或取消设置。)
public XDDFFont[] getFonts()
public void setFontSize(java.lang.Double size)
size
- font size in points. The value
null
unsets the size for this run.
public java.lang.Double getFontSize()
public void setCharacterKerning(java.lang.Double kerning)
The value null
unsets the kerning for this run.
kerning
- character kerning in points.
public java.lang.Double getCharacterKerning()
null
.
(文本运行中字符的字距调整,如果省略此属性,则返回 null。)
public void setCharacterSpacing(java.lang.Double spacing)
The spacing is specified in points. Positive values will cause the text to expand, negative values to condense.
The value null
unsets the spacing for this run.
spacing
- character spacing in points.
public java.lang.Double getCharacterSpacing()
null
.
(文本运行中字符之间的间距,如果省略此属性,则返回 null。)
public void setBookmark(java.lang.String bookmark)
public java.lang.String getBookmark()
public XDDFHyperlink linkToExternal(java.lang.String url, PackagePart localPart, POIXMLRelation relation)
public XDDFHyperlink linkToAction(java.lang.String action)
public XDDFHyperlink linkToInternal(java.lang.String action, PackagePart localPart, POIXMLRelation relation, PackagePartName target)
public XDDFHyperlink getHyperlink()
public XDDFHyperlink createMouseOver(java.lang.String action)
public XDDFHyperlink getMouseOver()
public void setLanguage(java.util.Locale lang)
public java.util.Locale getLanguage()
public void setAlternativeLanguage(java.util.Locale lang)
public java.util.Locale getAlternativeLanguage()
public void setHighlight(XDDFColor color)
public XDDFColor getHighlight()
public void setLineProperties(XDDFLineProperties properties)
public XDDFLineProperties getLineProperties()
@Internal protected org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties getProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.