EditableRegion.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / EditableRegion.cs / 1 / EditableRegion.cs

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

namespace System.Web.UI.Design { 
 
    using System;
    using System.Drawing.Design; 

    /// 
    /// 
    ///   Provides the necessary functionality for an editable region in a designer 
    /// 
    public class EditableDesignerRegion : DesignerRegion { 
        private bool _serverControlsOnly; 
        private bool _supportsDataBinding;
 
        /// 
        public EditableDesignerRegion(ControlDesigner owner, string name) : this(owner, name, false) {
        }
 
        /// 
        public EditableDesignerRegion(ControlDesigner owner, string name, bool serverControlsOnly) : base(owner, name) { 
            _serverControlsOnly = serverControlsOnly; 
        }
 
        /// 
        /// 
        /// 
        public virtual string Content { 
            get {
                return Designer.GetEditableDesignerRegionContent(this); 
            } 
            set {
                Designer.SetEditableDesignerRegionContent(this, value); 
            }
        }

        ///  
        /// 
        ///  
        public bool ServerControlsOnly { 
            get {
                return _serverControlsOnly; 
            }
            set {
                _serverControlsOnly = value;
            } 
        }
 
        ///  
        /// 
        public virtual bool SupportsDataBinding { 
            get {
                return _supportsDataBinding;
            }
            set { 
                _supportsDataBinding = value;
            } 
        } 

        ///  
        public virtual ViewRendering GetChildViewRendering(Control control) {
            return ControlDesigner.GetViewRendering(control);
        }
    } 
}
 

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