RichText
Inheritance: java.lang.Object, com.aspose.note.Node
All Implemented Interfaces: com.aspose.note.IOutlineElementChildNode, com.aspose.note.ITaggable, com.aspose.ms.System.Collections.Generic.IGenericEnumerable
public class RichText extends Node implements IOutlineElementChildNode, ITaggable, System.Collections.Generic.IGenericEnumerable<Character>
リッチテキストを表します。
コンストラクタ
| コンストラクタ | 説明 |
|---|---|
| RichText() | RichText クラスの新しいインスタンスを初期化します。 |
メソッド
RichText()
public RichText()
RichText クラスの新しいインスタンスを初期化します。
accept(DocumentVisitor visitor)
public void accept(DocumentVisitor visitor)
ノードのビジターを受け入れます。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| visitor | DocumentVisitor | DocumentVisitor から派生したクラスのオブジェクトです。 |
append(String value)
public RichText append(String value)
最後のテキスト範囲に文字列を追加します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 追加された値です。 |
Returns: RichText - The RichText.
append(String value, TextStyle style)
public final RichText append(String value, TextStyle style)
文字列を末尾に追加します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 追加された値です。 |
| style | TextStyle | 追加された文字列のスタイルです。 |
Returns: RichText - The RichText.
appendFront(String value)
public RichText appendFront(String value)
文字列を最初のテキスト範囲の先頭に追加します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 追加された値です。 |
Returns: RichText - The RichText.
appendFront(String value, TextStyle style)
public RichText appendFront(String value, TextStyle style)
文字列を先頭に追加します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 追加された値です。 |
| style | TextStyle | 追加された文字列のスタイルです。 |
Returns: RichText - The RichText.
clear()
public final RichText clear()
このインスタンスの内容をクリアします。
Returns: RichText - The RichText.
getAlignment()
public int getAlignment()
配置を取得します。
Returns: int
getLastModifiedTime()
public Date getLastModifiedTime()
最終更新時刻を取得します。
Returns: java.util.Date
getLength()
public final int getLength()
Returns: int
getLineSpacing()
public Float getLineSpacing()
行間隔を取得します。
Returns: java.lang.Float
getParagraphStyle()
public final ParagraphStyle getParagraphStyle()
段落スタイルを取得します。これらの設定は、getStyles コレクションに一致する TextStyle オブジェクトが存在しない場合、またはこのオブジェクトが必要な設定を指定していない場合に使用されます。
Returns: ParagraphStyle
getSpaceAfter()
public Float getSpaceAfter()
後ろの最小余白を取得します。
Returns: java.lang.Float
getSpaceBefore()
public Float getSpaceBefore()
前の最小余白を取得します。
Returns: java.lang.Float
getStyles()
public System.Collections.Generic.IGenericEnumerable<TextStyle> getStyles()
スタイルを取得します。
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.note.TextStyle>
getTags()
public final System.Collections.Generic.List<ITag> getTags()
段落のすべてのタグの一覧を取得します。
Returns: com.aspose.ms.System.Collections.Generic.List<com.aspose.note.ITag>
getText()
public final String getText()
テキストを取得します。文字列は値 10(改行)の文字を含んではいけません。
Returns: java.lang.String
getTextRuns()
public final System.Collections.Generic.IGenericEnumerable<TextRun> getTextRuns()
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.note.TextRun>
indexOf(char value)
public final int indexOf(char value)
この文字列内で指定された Unicode 文字が最初に出現するゼロベースのインデックスを返します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | char | 値です。 |
Returns:
int - intです。
indexOf(char value, int startIndex)
public final int indexOf(char value, int startIndex)
この文字列内で指定された Unicode 文字の最初の出現のゼロベースインデックスを返します。検索は指定された文字位置から開始します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | char | 値です。 |
| startIndex | int | 検索開始位置 |
Returns:
int - intです。
indexOf(char value, int startIndex, int count)
public final int indexOf(char value, int startIndex, int count)
このインスタンス内で指定された文字の最初の出現のゼロベースインデックスを返します。検索は指定された文字位置から開始し、指定された文字数だけ調べます。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | char | 値です。 |
| startIndex | int | 検索開始位置 |
| count | int | カウントです。 |
Returns:
int - intです。
indexOf(String value)
public final int indexOf(String value)
このインスタンス内で指定された文字列が最初に出現するゼロベースのインデックスを返します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 値です。 |
Returns:
int - intです。
indexOf(String value, int startIndex)
public final int indexOf(String value, int startIndex)
このインスタンスで指定された文字列が最初に出現する位置のゼロベースインデックスを返します。検索は指定された文字位置から開始します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 値です。 |
| startIndex | int | 検索開始位置 |
Returns:
int - intです。
indexOf(String value, int startIndex, int count)
public final int indexOf(String value, int startIndex, int count)
このインスタンスで指定された文字列が最初に出現する位置のゼロベースインデックスを返します。検索は指定された文字位置から開始し、指定された文字数だけ調べます。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 値です。 |
| startIndex | int | 検索開始位置 |
| count | int | カウントです。 |
Returns:
int - intです。
indexOf(String value, int startIndex, int count, short comparisonType)
public final int indexOf(String value, int startIndex, int count, short comparisonType)
現在のインスタンス内で指定された文字列が最初に出現するゼロベースのインデックスを返します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 値です。 |
| startIndex | int | 検索開始位置 |
| count | int | カウントです。 |
| comparisonType | short | 指定された文字列に使用する検索の種類 |
Returns:
int - intです。
indexOf(String value, short comparisonType)
public final int indexOf(String value, short comparisonType)
現在のインスタンスで指定された文字列が最初に出現する位置のゼロベースインデックスを返します。パラメータは指定された文字列に使用する検索の種類を指定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 値です。 |
| comparisonType | short | 指定された文字列に使用する検索の種類 |
Returns:
int - intです。
indexOf_Rename_Namesake(String value, int startIndex, short comparisonType)
public final int indexOf_Rename_Namesake(String value, int startIndex, short comparisonType)
現在のインスタンスで指定された文字列が最初に出現する位置のゼロベースインデックスを返します。パラメータは現在の文字列における検索開始位置と、指定された文字列に使用する検索の種類を指定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String | 値です。 |
| startIndex | int | 検索開始位置 |
| comparisonType | short | 指定された文字列に使用する検索の種類 |
Returns:
int - intです。
insert(int startIndex, String value)
public final RichText insert(int startIndex, String value)
このインスタンスの指定されたインデックス位置に指定された文字列を挿入します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| startIndex | int | 開始インデックス。 |
| 値 | java.lang.String | 値です。 |
Returns: RichText - The RichText.
insert(int startIndex, String value, TextStyle style)
public final RichText insert(int startIndex, String value, TextStyle style)
このインスタンスの指定されたインデックス位置に、指定されたスタイルを持つ文字列を挿入します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| startIndex | int | 開始インデックス。 |
| 値 | java.lang.String | 値です。 |
| style | TextStyle | スタイル。 |
Returns: RichText - The RichText.
iterator()
public System.Collections.Generic.IGenericEnumerator<Character> iterator()
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<java.lang.Character>
remove(int startIndex)
public final RichText remove(int startIndex)
現在のインスタンスで、指定された位置から最後の位置までのすべての文字を削除します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| startIndex | int | 開始インデックス。 |
Returns: RichText - The RichText.
remove(int startIndex, int count)
public final RichText remove(int startIndex, int count)
現在のインスタンスで、指定された位置から指定された数の文字を削除します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| startIndex | int | 開始インデックス。 |
| count | int | カウントです。 |
Returns: RichText - The RichText.
replace(char oldChar, char newChar)
public final RichText replace(char oldChar, char newChar)
このインスタンス内の指定された Unicode 文字のすべての出現を、別の指定された Unicode 文字に置き換えます。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| oldChar | char | 古い文字。 |
| newChar | char | 新しい文字。 |
Returns: RichText - The RichText.
replace(String oldValue, String newValue)
public final RichText replace(String oldValue, String newValue)
現在のインスタンス内の指定された文字列のすべての出現を、別の指定された文字列に置き換えます。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| oldValue | java.lang.String | 古い値。 |
| newValue | java.lang.String | 新しい値。 |
Returns: RichText - The RichText.
replace(String oldValue, String newValue, TextStyle style)
public final RichText replace(String oldValue, String newValue, TextStyle style)
現在のインスタンス内の指定された文字列のすべての出現を、指定されたスタイルの別の文字列に置き換えます。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| oldValue | java.lang.String | 古い値。 |
| newValue | java.lang.String | 新しい値。 |
| style | TextStyle | 新しい値のスタイル。 |
Returns: RichText - The RichText.
setAlignment(int value)
public void setAlignment(int value)
配置を設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | int |
setLastModifiedTime(Date value)
public void setLastModifiedTime(Date value)
最終更新日時を設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.util.Date |
setLineSpacing(float value)
public void setLineSpacing(float value)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | float |
setLineSpacing(Float value)
public void setLineSpacing(Float value)
行間隔を設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.Float |
setParagraphStyle(ParagraphStyle value)
public final void setParagraphStyle(ParagraphStyle value)
段落のスタイルを設定します。これらの設定は、getStyles コレクションに一致する TextStyle オブジェクトが存在しない場合、またはこのオブジェクトが必要な設定を指定していない場合に使用されます。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | ParagraphStyle |
setSpaceAfter(float value)
public void setSpaceAfter(float value)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | float |
setSpaceAfter(Float value)
public void setSpaceAfter(Float value)
後ろの最小余白を設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.Float |
setSpaceBefore(float value)
public void setSpaceBefore(float value)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | float |
setSpaceBefore(Float value)
public void setSpaceBefore(Float value)
前に設定する最小スペース量を設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.Float |
setText(String value)
public final void setText(String value)
テキストを設定します。文字列は値10(改行)に相当する文字を含んではいけません。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 値 | java.lang.String |
trim()
public final RichText trim()
先頭と末尾のすべての空白文字を削除します。
Returns: RichText - The RichText.
trim(char trimChar)
public final RichText trim(char trimChar)
文字の先頭と末尾のすべての出現を削除します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| trimChar | char | トリム文字。 |
Returns: RichText - The RichText.
trim(char[] trimChars)
public final RichText trim(char[] trimChars)
配列で指定された文字セットの先頭と末尾のすべての出現を削除します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| trimChars | char[] | トリム文字です。 |
Returns: RichText - The RichText.
trimEnd()
public final RichText trimEnd()
末尾のすべての空白文字を削除します。
Returns: RichText - The RichText.
trimEnd(char trimChar)
public final RichText trimEnd(char trimChar)
文字の末尾のすべての出現を削除します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| trimChar | char | トリム文字。 |
Returns: RichText - The RichText.
trimEnd(char[] trimChars)
public final RichText trimEnd(char[] trimChars)
配列で指定された文字セットの末尾のすべての出現を削除します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| trimChars | char[] | トリム文字です。 |
Returns: RichText - The RichText.
trimStart()
public final RichText trimStart()
先頭のすべての空白文字を削除します。
Returns: RichText - The RichText.
trimStart(char trimChar)
public final RichText trimStart(char trimChar)
指定された文字の先頭のすべての出現を削除します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| trimChar | char | トリム文字。 |
Returns: RichText - The RichText.
trimStart(char[] trimChars)
public final RichText trimStart(char[] trimChars)
配列で指定された文字セットの先頭のすべての出現を削除します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| trimChars | char[] | トリム文字です。 |