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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ColorMap.cs
- DecoderNLS.cs
- OutputCacheProfileCollection.cs
- MarkerProperties.cs
- JapaneseLunisolarCalendar.cs
- EntityDataSource.cs
- KerberosSecurityTokenParameters.cs
- DefaultValueConverter.cs
- DataComponentGenerator.cs
- TextRenderer.cs
- Matrix.cs
- SqlRewriteScalarSubqueries.cs
- BaseTemplateBuildProvider.cs
- InputManager.cs
- ParameterModifier.cs
- MenuBindingsEditorForm.cs
- ParallelLoopState.cs
- ClientTarget.cs
- DataGridViewRowPrePaintEventArgs.cs
- CorrelationTokenInvalidatedHandler.cs
- EventPrivateKey.cs
- VideoDrawing.cs
- CommonDialog.cs
- ListenerChannelContext.cs
- LinkTarget.cs
- UpWmlMobileTextWriter.cs
- XPathParser.cs
- System.Data_BID.cs
- TextRangeSerialization.cs
- RtfNavigator.cs
- LogStore.cs
- future.cs
- Set.cs
- InputLanguageSource.cs
- DiscoveryClient.cs
- validationstate.cs
- Partitioner.cs
- TypeListConverter.cs
- DesignerTextWriter.cs
- PrintController.cs
- ExpressionQuoter.cs
- JsonReaderWriterFactory.cs
- PopOutPanel.cs
- MethodResolver.cs
- EffectiveValueEntry.cs
- SrgsElementFactory.cs
- ContainerUIElement3D.cs
- DodSequenceMerge.cs
- GeneralTransform.cs
- SpoolingTaskBase.cs
- LayoutManager.cs
- WebServiceHostFactory.cs
- TreeNodeClickEventArgs.cs
- MultipartContentParser.cs
- SoapServerMessage.cs
- RemotingAttributes.cs
- RolePrincipal.cs
- HtmlEncodedRawTextWriter.cs
- IBuiltInEvidence.cs
- QueryOutputWriter.cs
- BitmapEffectOutputConnector.cs
- IIS7UserPrincipal.cs
- SoapAttributeOverrides.cs
- PackUriHelper.cs
- PointUtil.cs
- Point.cs
- DataBindingHandlerAttribute.cs
- RangeValidator.cs
- LogicalExpr.cs
- QueryGenerator.cs
- FileDialogCustomPlace.cs
- URIFormatException.cs
- ConfigurationElementCollection.cs
- ProfileSettings.cs
- PageRouteHandler.cs
- dataobject.cs
- DoubleLinkList.cs
- HttpListener.cs
- MenuBase.cs
- ApplicationFileCodeDomTreeGenerator.cs
- FirstMatchCodeGroup.cs
- WorkItem.cs
- DeviceSpecificDialogCachedState.cs
- HitTestParameters.cs
- PathGeometry.cs
- InfoCardTrace.cs
- Object.cs
- PointAnimation.cs
- WinOEToolBoxItem.cs
- DataGridItemEventArgs.cs
- CursorInteropHelper.cs
- StorageConditionPropertyMapping.cs
- TraceUtils.cs
- XmlWriter.cs
- SqlCacheDependencySection.cs
- MemberPathMap.cs
- KeyValuePair.cs
- TextElementEnumerator.cs
- DataFormat.cs
- DataGridViewCellStyle.cs