Bitmap for WPF
SetDrawingEffect(Object,TextRange) メソッド

C1.WPF.DX.4.5.2 アセンブリ > C1.Util.DX.DirectWrite 名前空間 > TextLayout クラス > SetDrawingEffect メソッド : SetDrawingEffect(Object,TextRange) メソッド
Application-defined drawing effects that apply to the range. This data object will be passed back to the application's drawing callbacks for final rendering.
The text range to which this change applies.
Sets the application-defined drawing effect.
シンタックス
'宣言
 
Public Overloads Function SetDrawingEffect( _
   ByVal drawingEffect As System.Object, _
   ByVal textRange As TextRange _
) As System.IntPtr
public System.IntPtr SetDrawingEffect( 
   System.object drawingEffect,
   TextRange textRange
)

パラメータ

drawingEffect
Application-defined drawing effects that apply to the range. This data object will be passed back to the application's drawing callbacks for final rendering.
textRange
The text range to which this change applies.

戻り値の型

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
解説
An C1.Util.DX.Direct2D.Brush, such as a color or gradient brush, can be set as a drawing effect if you are using the RenderTarget.DrawTextLayout to draw text and that brush will be used to draw the specified range of text. This drawing effect is associated with the specified range and will be passed back to the application by way of the callback when the range is drawn at drawing time.
参照

TextLayout クラス
TextLayout メンバ
オーバーロード一覧