BookmarkEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Synthesis / BookmarkEventArgs.cs / 1 / BookmarkEventArgs.cs

                            //------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------- 

using System; 
 
namespace System.Speech.Synthesis
{ 
    /// 
    /// TODOC - Summary description for BookmarkEventArgs.
    /// 
    public class BookmarkReachedEventArgs : PromptEventArgs 
    {
        //******************************************************************* 
        // 
        // Constructors
        // 
        //*******************************************************************

        #region Constructors
 
#if SPEECHSERVER
        ///  
        /// TODOC 
        /// 
        ///  
        /// 
        /// 
        /// 
        internal BookmarkReachedEventArgs (Prompt prompt, string bookmark, TimeSpan audioPosition, long streamPosition) 
            : base (prompt)
        { 
            _bookmark = bookmark; 
            _audioPosition = audioPosition;
            _streamPosition = streamPosition; 
        }

#else
        ///  
        /// TODOC
        ///  
        ///  
        /// 
        ///  
        internal BookmarkReachedEventArgs (Prompt prompt, string bookmark, TimeSpan audioPosition)
            : base (prompt)
        {
            _bookmark = bookmark; 
            _audioPosition = audioPosition;
        } 
 
#endif
 
        #endregion

        //********************************************************************
        // 
        // Public Properties
        // 
        //******************************************************************* 

        #region public Properties 

        /// 
        /// TODOC
        ///  
        /// 
        public string Bookmark 
        { 
            get
            { 
                return _bookmark;
            }
        }
 
        /// 
        /// TODOC 
        ///  
        /// 
        public TimeSpan AudioPosition 
        {
            get
            {
                return _audioPosition; 
            }
        } 
 
#if SPEECHSERVER
 
        /// 
        /// TODOC
        /// 
        ///  
        internal long StreamPosition
        { 
            get 
            {
                return _streamPosition; 
            }
        }

#endif 

        #endregion 
 
        //********************************************************************
        // 
        // Private Fields
        //
        //********************************************************************
 
        #region Private Fields
 
        string _bookmark; 

        // Audio and stream position 
        private TimeSpan _audioPosition;
#if SPEECHSERVER
        private long _streamPosition;
#endif 

        #endregion 
    } 
}

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

using System; 
 
namespace System.Speech.Synthesis
{ 
    /// 
    /// TODOC - Summary description for BookmarkEventArgs.
    /// 
    public class BookmarkReachedEventArgs : PromptEventArgs 
    {
        //******************************************************************* 
        // 
        // Constructors
        // 
        //*******************************************************************

        #region Constructors
 
#if SPEECHSERVER
        ///  
        /// TODOC 
        /// 
        ///  
        /// 
        /// 
        /// 
        internal BookmarkReachedEventArgs (Prompt prompt, string bookmark, TimeSpan audioPosition, long streamPosition) 
            : base (prompt)
        { 
            _bookmark = bookmark; 
            _audioPosition = audioPosition;
            _streamPosition = streamPosition; 
        }

#else
        ///  
        /// TODOC
        ///  
        ///  
        /// 
        ///  
        internal BookmarkReachedEventArgs (Prompt prompt, string bookmark, TimeSpan audioPosition)
            : base (prompt)
        {
            _bookmark = bookmark; 
            _audioPosition = audioPosition;
        } 
 
#endif
 
        #endregion

        //********************************************************************
        // 
        // Public Properties
        // 
        //******************************************************************* 

        #region public Properties 

        /// 
        /// TODOC
        ///  
        /// 
        public string Bookmark 
        { 
            get
            { 
                return _bookmark;
            }
        }
 
        /// 
        /// TODOC 
        ///  
        /// 
        public TimeSpan AudioPosition 
        {
            get
            {
                return _audioPosition; 
            }
        } 
 
#if SPEECHSERVER
 
        /// 
        /// TODOC
        /// 
        ///  
        internal long StreamPosition
        { 
            get 
            {
                return _streamPosition; 
            }
        }

#endif 

        #endregion 
 
        //********************************************************************
        // 
        // Private Fields
        //
        //********************************************************************
 
        #region Private Fields
 
        string _bookmark; 

        // Audio and stream position 
        private TimeSpan _audioPosition;
#if SPEECHSERVER
        private long _streamPosition;
#endif 

        #endregion 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

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