TextChange.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 / Framework / System / Windows / Controls / TextChange.cs / 1 / TextChange.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// Description: 
// 
// History:
//  6/1/2007 : [....] - Created 
//
//---------------------------------------------------------------------------

using System; 
using System.Windows;
using System.Collections; 
 
namespace System.Windows.Controls
{ 
    /// 
    /// Specifies the changes applied to TextContainer content.
    /// 
    public class TextChange 
    {
        //----------------------------------------------------- 
        // 
        //  Constructors
        // 
        //-----------------------------------------------------

        #region Constructors
 
        internal TextChange()
        { 
        } 

        #endregion Constructors 

        //------------------------------------------------------
        //
        //  Public Members 
        //
        //----------------------------------------------------- 
 
        #region Public Members
 
        /// 
        /// 0-based character offset for this change
        /// 
        public int Offset 
        {
            get 
            { 
                return _offset;
            } 
            internal set
            {
                _offset = value;
            } 
        }
 
        ///  
        /// Number of characters added
        ///  
        public int AddedLength
        {
            get
            { 
                return _addedLength;
            } 
            internal set 
            {
                _addedLength = value; 
            }
        }

        ///  
        /// Number of characters removed
        ///  
        public int RemovedLength 
        {
            get 
            {
                return _removedLength;
            }
            internal set 
            {
                _removedLength = value; 
            } 
        }
 
        #endregion Public Members

        //------------------------------------------------------
        // 
        //  Private Fields
        // 
        //------------------------------------------------------ 

        #region Private Fields 

        private int _offset;
        private int _addedLength;
        private int _removedLength; 

        #endregion Private Fields 
    } 
}

// 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