TextEffect.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / TextEffect.cs / 1 / TextEffect.cs

                            //------------------------------------------------------------------------ 
//
//  Microsoft Windows Client Platform
//  Copyright (C) Microsoft Corporation, 2001
// 
//  File:      TextEffect.cs
// 
//  Contents:  TextEffect class 
//
//  Created:   3/23/2004 [....] 
//
//-----------------------------------------------------------------------

 
using System;
using System.Diagnostics; 
using System.Runtime.InteropServices; 
using System.Windows;
using System.Collections; 
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Markup;
using System.ComponentModel; 

using SR=MS.Internal.PresentationCore.SR; 
using SRID=MS.Internal.PresentationCore.SRID; 

namespace System.Windows.Media 
{
    /// 
    /// The class definition for TextEffect
    ///  
    [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)]
    public partial class TextEffect : Animatable 
    { 
        //----------------------------------------
        // constructor 
        //----------------------------------------


        ///  
        /// Constructor to TextEffect
        ///  
        /// transform of the text effect 
        /// foreground of the text effect
        /// clip of the text effect 
        /// starting character index of the text effect
        /// number of code points
        public TextEffect(
            Transform transform, 
            Brush foreground,
            Geometry clip, 
            int positionStart, 
            int positionCount
            ) 
        {
            if (positionCount < 0)
            {
                throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); 
            }
 
            Transform       = transform; 
            Foreground      = foreground;
            Clip            = clip; 
            PositionStart   = positionStart;
            PositionCount   = positionCount;
        }
 
        /// 
        /// constructor 
        ///  
        public TextEffect()
        { 
        }

        //-------------------------------
        // Private method 
        //-------------------------------
        private static bool OnPositionStartChanging(int value) 
        { 
            return (value >= 0);
        } 

        private static bool OnPositionCountChanging(int value)
        {
            return (value >= 0); 
        }
    } 
} 


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK