XPropertySetのsetPropertyValue()
メソッドを使用するには、メソッド内で渡される引数を知る必要があります。
たとえば、OpenOffice Writerでテキストに下線を付けるには、テキストに下線を付けるために使用します。同様に、OpenOffice Writerで他のタスクを実行するために、CharUnderlinexTextProps.setPropertyValue("CharUnderline", com.sun.star.awt.FontUnderline.BOLD);
などのすべてのプロパティの名前を知りたいです。これらのプロパティの名前を知るにはどうすればよいですか。plsは提案します。
1 に答える
テキストオブジェクトのプロパティはここにリストされています
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 "