Ejemplo n.º 1
0
        /// <summary>
        /// Sets the application-defined drawing effect.
        /// </summary>
        /// <remarks>
        /// An <see cref="SharpDX.Direct2D1.Brush"/>, such as a color or gradient brush, can be set as a drawing effect if you are using the <see cref="RenderTarget.DrawTextLayout(System.Drawing.PointF,SharpDX.DirectWrite.TextLayout,SharpDX.Direct2D1.Brush,SharpDX.Direct2D1.DrawTextOptions)"/> 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.
        /// </remarks>
        /// <param name="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. </param>
        /// <param name="textRange">The text range to which this change applies. </param>
        /// <returns>If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. </returns>
        /// <unmanaged>HRESULT IDWriteTextLayout::SetDrawingEffect([None] IUnknown* drawingEffect,[None] DWRITE_TEXT_RANGE textRange)</unmanaged>
        public void SetDrawingEffect(SharpDX.ComObject drawingEffect, SharpDX.DirectWrite.TextRange textRange)
        {
            var drawingEffectPtr = Utilities.GetIUnknownForObject(drawingEffect);

            SetDrawingEffect(drawingEffectPtr, textRange);
            if (drawingEffectPtr != IntPtr.Zero)
            {
                Marshal.Release(drawingEffectPtr);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the inline object.
 /// </summary>
 /// <remarks>
 /// The application may call this function to specify the set of properties describing an application-defined inline object for specific range.  This inline object applies to the specified range and will be passed back to the application by way of the DrawInlineObject callback when the range is drawn. Any text in that range will be suppressed.
 /// </remarks>
 /// <param name="inlineObject">An application-defined inline object.  </param>
 /// <param name="textRange">Text range to which this change applies. </param>
 /// <returns>If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. </returns>
 /// <unmanaged>HRESULT IDWriteTextLayout::SetInlineObject([None] IDWriteInlineObject* inlineObject,[None] DWRITE_TEXT_RANGE textRange)</unmanaged>
 public void SetInlineObject(InlineObject inlineObject, SharpDX.DirectWrite.TextRange textRange)
 {
     SetInlineObject_(InlineObjectShadow.ToIntPtr(inlineObject), textRange);
 }
Ejemplo n.º 3
0
 public static unsafe int Calliint179(void *thisObject, float arg0, float arg1, float arg2, SharpDX.DirectWrite.TextRange arg3, void *methodPtr)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
 public static unsafe int Calliint141(void *thisObject, SharpDX.Mathematics.Interop.RawBool arg0, SharpDX.DirectWrite.TextRange arg1, void *methodPtr)
 {
     throw new NotImplementedException();
 }