DISQUS

DISQUS Hello! fortes.com is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

TextEffects

Started by Fortes · 10 months ago

TextEffects is a poorly-documented property that allows you to apply an effect to a portion of text. It’s not the best of name for the property (at least in this first version of WPF), because the only “effects” supported in the current version are Clip, Foreground, ... Continue reading »

1 comment

  • Hi,
    Just looked at your page and it solved a problem for me when doing the same thing in code.

    Dim run As New Run
    Dim translateTransform As New TranslateTransform
    translateTransform.Y = -10
    translateTransform.X = 0
    Dim textEffect As New TextEffect
    textEffect.PositionStart = 0
    textEffect.PositionCount = 100

    textEffect.Transform = translateTransform
    run.TextEffects.Add(textEffect)

    If you ever work out why the PositionCount seems to need to be such a large number then I'd be grateful if you let me know.
    Best wishes
    Sean

Add New Comment

Comments are closed for this post.
Returning? Login