ヘルプ センターヘルプ センター
名前空間: mlreportgen.dom
text オブジェクトの太字
text オブジェクトに太字を使用するかどうかを指定します。
mlreportgen.dom.Bold クラスは handle クラスです。
mlreportgen.dom.Bold
handle
boldObj = Bold は、text オブジェクトに太字を使用することを指定する bold オブジェクトを作成します。
boldObj = Bold
boldObj
例
boldObj = Bold(value) は、value が true の場合に text オブジェクトに太字を使用することを指定する bold オブジェクトを作成します。それ以外の場合は、標準的な太さのテキストを使用するように指定する bold オブジェクトを作成します。
boldObj = Bold(value)
value
true
すべて展開する
[]
false (または 0) に設定すると、標準的な太さのテキストが使用されます。true (または 1) に設定すると、テキストが太字で表示されます。
false
0
1
データ型: logical
logical
Value
以下の値が使用可能です。
0 — 標準的な太さのテキストを使用
1 — テキストを太字で表示
Tag
mlreportgen.dom.Bold オブジェクトのタグ。文字ベクトルまたは string スカラーとして指定します。DOM API は、このオブジェクトを作成するときに、セッション固有タグを生成します。生成されるタグの形式は CLASS:ID という形式です。ここで、CLASS はオブジェクト クラスです。ID はオブジェクトの Id プロパティの値です。独自のタグ値を指定すると、ドキュメント生成中に問題が発生したときにどこを確認すればよいかを特定しやすくなります。
CLASS:ID
CLASS
ID
Id
NonCopyable
データ型: char | string
char
string
mlreportgen.dom.Bold オブジェクトのオブジェクト識別子。文字ベクトルまたは string スカラーとして指定します。DOM API は、ドキュメント要素オブジェクトの作成時にセッション固有識別子を生成します。Id には独自の値を指定できます。
すべて折りたたむ
import mlreportgen.dom.*; doctype = 'html'; d = Document('test',doctype); p = Paragraph('Bold text '); p.Style = {Bold}; append(d,p); t = Text('Regular weight text'); t.Style = {Bold(false)}; append(p,t); close(d); rptview('test',doctype);
R2014b で導入
mlreportgen.dom.Italic
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office