4

StyledDocumentには、スタイルを設定するためのさまざまなメソッドが含まれています。setCharacterAttributesのように。

しかし、スタイルを削除する方法がわかりません。

ありますか?

4

2 に答える 2

1

StyledDocument has a removeStyle method that removes the named style.

Your document has to have character attributes. You can set the character attributes, and later set the character attributes to default values.

于 2014-03-05T01:58:56.583 に答える