FixedSOMPage.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / FixedSOMPage.cs / 1305600 / FixedSOMPage.cs

                            /*++ 

    File: FixedSOMPage.cs

    Copyright (C) 2005 Microsoft Corporation. All rights reserved. 

    Description: 
        A semantic container that contains all the first-level containers on the page 

    History: 
       05/17/2005: agurcan - Created

--*/
 
namespace System.Windows.Documents
{ 
    using System.Collections; 
    using System.Collections.Generic;
    using System.Windows.Markup;    // for XmlLanguage 
    using System.Windows.Media;
    using System.Globalization;
    using System.Diagnostics;
 
    internal sealed class FixedSOMPage: FixedSOMContainer
    { 
        //-------------------------------------------------------------------- 
        //
        // Constructors 
        //
        //---------------------------------------------------------------------

        #region Constructors 
        public FixedSOMPage()
        { 
        } 
        #endregion Constructors
 

        //-------------------------------------------------------------------
        //
        // Public Methods 
        //
        //--------------------------------------------------------------------- 
 
        #region Public Methods
#if DEBUG 
        public override void Render(DrawingContext dc, string label, DrawDebugVisual debugVisuals)
        {
            switch (debugVisuals)
            { 
                case DrawDebugVisual.None:
                case DrawDebugVisual.Glyphs: //Handled in FixedPage 
                    //Nothing to do 
                    break;
                default: 
                    int groupIndex = 0;
                    int boxIndex = 0;
                    for (int i=0; i<_semanticBoxes.Count; i++)
                    { 
                        FixedSOMGroup group = _semanticBoxes[i] as FixedSOMGroup;
                        if (group != null) 
                        { 
                            if (debugVisuals == DrawDebugVisual.Groups)
                            { 
                                group.Render(dc, groupIndex.ToString(),  debugVisuals);
                                groupIndex++;
                            }
                            List groupBoxes = group.SemanticBoxes; 
                            for (int j=0; j MarkupOrder 
        {
            get 
            { 
                return _markupOrder;
            } 
            set
            {
                _markupOrder = value;
            } 
        }
 
        internal CultureInfo CultureInfo 
        {
            set 
            {
                _cultureInfo = value;
            }
        } 

        #endregion Public Properties 
 
        //--------------------------------------------------------------------
        // 
        // Private Fields
        //
        //----------------------------------------------------------------------
 
        #region Private Fields
 
        private List _markupOrder; 
        private CultureInfo _cultureInfo;
 
        #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