Bitmap for UWP
DrawStrikethrough(Object,Single,Single,GlyphOrientationAngle,Strikethrough,IntPtr) メソッド

C1.UWP.DX アセンブリ > C1.Util.DX.DirectWrite 名前空間 > TextRenderer1Base クラス > DrawStrikethrough メソッド : DrawStrikethrough(Object,Single,Single,GlyphOrientationAngle,Strikethrough,IntPtr) メソッド
The application-defined drawing context passed to IDWriteTextLayout::Draw.
The pixel location (X-coordinate) at the baseline origin of the run where strikethrough applies.
The pixel location (Y-coordinate) at the baseline origin of the run where strikethrough applies.
Orientation of the strikethrough.
Pointer to a structure containing strikethrough logical information.
Application-defined effect to apply to the strikethrough. Usually this argument represents effects such as the foreground brush filling the interior of a line.
IDWriteTextLayout::Draw calls this function to instruct the client to draw a strikethrough.
シンタックス
'宣言
 
Public Overloads Overridable Function DrawStrikethrough( _
   ByVal clientDrawingContext As System.Object, _
   ByVal baselineOriginX As System.Single, _
   ByVal baselineOriginY As System.Single, _
   ByVal orientationAngle As GlyphOrientationAngle, _
   ByRef strikethrough As Strikethrough, _
   ByVal clientDrawingEffectPtr As System.IntPtr _
) As HResult
public virtual HResult DrawStrikethrough( 
   System.object clientDrawingContext,
   System.float baselineOriginX,
   System.float baselineOriginY,
   GlyphOrientationAngle orientationAngle,
   ref Strikethrough strikethrough,
   System.IntPtr clientDrawingEffectPtr
)

パラメータ

clientDrawingContext
The application-defined drawing context passed to IDWriteTextLayout::Draw.
baselineOriginX
The pixel location (X-coordinate) at the baseline origin of the run where strikethrough applies.
baselineOriginY
The pixel location (Y-coordinate) at the baseline origin of the run where strikethrough applies.
orientationAngle
Orientation of the strikethrough.
strikethrough
Pointer to a structure containing strikethrough logical information.
clientDrawingEffectPtr
Application-defined effect to apply to the strikethrough. Usually this argument represents effects such as the foreground brush filling the interior of a line.

戻り値の型

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
解説
A single strikethrough can be broken into multiple calls, depending on how the formatting changes attributes. Strikethrough is not averaged across font sizes/styles changes. To get an appropriate starting pixel position, add strikethrough::offset to the baseline. Like underlines, the x coordinate will always be passed as the left side, regardless of text directionality.
参照

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