gpt4 book ai didi

java - 如何知道 Open Office Java API 中的属性值

转载 作者:行者123 更新时间:2023-11-29 09:30:45 36 4
gpt4 key购买 nike

要使用 XPropertySet 的 setPropertyValue() 方法,我需要知道要在方法内部传递的参数。
例如,要在 OpenOffice Writer 中为文本加下划线,我使用 xTextProps.setPropertyValue("CharUnderline", com.sun.star.awt.FontUnderline.BOLD); 为文本加下划线,同样想知道所有属性的名称,如 CharUnderline ,以便在 OpenOffice Writer 中执行其他任务。

我如何知道这些属性的名称。

请建议。

最佳答案

此处列出文本对象的属性

https://wiki.openoffice.org/wiki/Documentation/DevGuide/Text/Formatting

"CharFontName", "CharFontStyleName", "CharFontFamily", "com.sun.star.awt.FontFamily", "CharFontCharSet", "com.sun.star.awt.CharSet", "CharFontPitch", "com. sun.star.awt.FontPitch", "CharColor", "CharEscapement", "CharHeight", "CharUnderline", "com.sun.star.awt.FontUnderline", "CharWeight", "com.sun.star.awt. FontWeight", "CharPosture", "com.sun.star.awt.FontSlant", "CharAutoKerning", "CharBackColor", "CharBackTransparent", "CharCaseMap", "com.sun.star.style.CaseMap", "CharCrossedOut", "CharFlash", "CharStrikeout", "com.sun.star.awt.FontStrikeout", "CharWordMode", "CharKerning", "CharLocale", "com.sun.star.lang.Locale", "CharKeepTogether", "CharNoLineBreak", "CharShadowed", "CharFontType", "com.sun.star.awt.FontType", "CharStyleName", "CharContoured", "CharCombineIsOn", "CharCombinePrefix", "CharCombineSuffix", "CharEmphasis", "com. sun.star.text.FontEmphasis", "CharRelief", "RubyText", "RubyAdjust", "RubyCharStyleName", "RubyIsAbove", "CharRotation", "CharRotationIsFitToLine", "CharScaleWidth", "HyperLinkURL", "HyperLinkTarget", "HyperLinkName", "VisitedCharStyleName", "UnvisitedCharStyleName", "CharEscapementHeight", "CharNoHyphenation", "CharUnderlineColor", "Color", "CharUnderlineHasColor", "CharStyleNames", "CharHidden", "TextUserDefinedAttributes", "XNameContainer"

关于java - 如何知道 Open Office Java API 中的属性值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14196480/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com