StyledDocumentには、スタイルを設定するためのさまざまなメソッドが含まれています。setCharacterAttributesのように。
しかし、スタイルを削除する方法がわかりません。
ありますか?
StyledDocumentには、スタイルを設定するためのさまざまなメソッドが含まれています。setCharacterAttributesのように。
しかし、スタイルを削除する方法がわかりません。
ありますか?
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.