ヘルプ センターヘルプ センター
名前空間: mlreportgen.ppt
text オブジェクトの太字
text オブジェクトに太字を使用するかどうかを指定します。
mlreportgen.ppt.Bold クラスは handle クラスです。
mlreportgen.ppt.Bold
handle
boldObj = Bold は、text オブジェクトに太字を使用することを指定する bold オブジェクトを作成します。
boldObj = Bold
boldObj
例
boldObj = Bold(value) は、value が true の場合、text オブジェクトに太字を使用することを指定する bold オブジェクトを作成します。それ以外の場合は、標準的な太さのテキストを使用するように指定する bold オブジェクトを作成します。
boldObj = Bold(value)
value
true
すべて展開する
[]
テキストを太字にするか標準的な太さにするか。logical 値として指定します。false (または 0) に設定すると、標準的な太さのテキストが使用されます。true (または 1) に設定すると、テキストが太字で表示されます。
false
0
1
データ型: logical
logical
Value
以下の値が使用可能です。
0 — 標準的な太さのテキストを使用
1 — テキストを太字で表示
Tag
この PPT API オブジェクトのタグ。文字ベクトルまたは string スカラーとして指定します。セッション固有タグは、このオブジェクト作成の一環として生成されます。生成されたタグの形式は CLASS:ID という形式です。ここで、CLASS はオブジェクト クラスです。ID はオブジェクトの Id プロパティの値です。
CLASS:ID
CLASS
ID
Id
独自のタグ値を指定すると、プレゼンテーションの生成中に問題が発生した箇所を容易に特定できるようになります。
NonCopyable
データ型: char | string
char
string
この PPT API オブジェクトの ID。文字ベクトルまたは string スカラーとして指定します。セッション固有 ID は、オブジェクト作成の一環として生成されます。ID を指定して、生成された ID を置き換えることができます。
すべて折りたたむ
プレゼンテーションを作成します。
import mlreportgen.ppt.* ppt = Presentation('myBoldPresentation.pptx'); open(ppt); titleSlide = add(ppt,'Title and Content');
段落を作成し、太字テキストでテキストを追加します。
p = Paragraph('Hello World'); p.Style = {Bold(true)}; t = Text(' How are you?'); t.Style = {Bold(false)}; append(p,t);
スライドに段落を追加します。プレゼンテーションを閉じて表示します。
replace(titleSlide,'Content',p); close(ppt); rptview(ppt);
R2015b で導入
mlreportgen.ppt.Italic | mlreportgen.ppt.FontColor | mlreportgen.ppt.FontFamily | mlreportgen.ppt.FontSize
mlreportgen.ppt.Italic
mlreportgen.ppt.FontColor
mlreportgen.ppt.FontFamily
mlreportgen.ppt.FontSize
次の 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