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
- DataRowCollection.cs
- IPGlobalProperties.cs
- DataSvcMapFileSerializer.cs
- ProcessDesigner.cs
- ListViewEditEventArgs.cs
- FamilyMap.cs
- ImageBrush.cs
- MergeFailedEvent.cs
- XPathDocumentBuilder.cs
- SqlPersistenceProviderFactory.cs
- IntSumAggregationOperator.cs
- SafeFileMapViewHandle.cs
- TemplatedWizardStep.cs
- TreeNode.cs
- SqlConnectionStringBuilder.cs
- XmlSchemaAttribute.cs
- Queue.cs
- CachedCompositeFamily.cs
- ConfigDefinitionUpdates.cs
- UIElement3D.cs
- SqlProviderServices.cs
- PointConverter.cs
- DataTableReader.cs
- DelimitedListTraceListener.cs
- DataTableTypeConverter.cs
- XmlQualifiedName.cs
- XPathEmptyIterator.cs
- EmptyEnumerator.cs
- EventMappingSettingsCollection.cs
- IdentityReference.cs
- DBCSCodePageEncoding.cs
- XmlAttributes.cs
- ContentPlaceHolder.cs
- ListDictionaryInternal.cs
- DbSetClause.cs
- Documentation.cs
- TypeKeyValue.cs
- PasswordTextContainer.cs
- HotSpot.cs
- StringReader.cs
- GifBitmapDecoder.cs
- DataProtection.cs
- ImageFormatConverter.cs
- HttpValueCollection.cs
- DbCommandDefinition.cs
- TypeForwardedToAttribute.cs
- DataBinding.cs
- DefaultSerializationProviderAttribute.cs
- __ConsoleStream.cs
- ApplicationHost.cs
- recordstate.cs
- ConsoleTraceListener.cs
- SqlHelper.cs
- CallbackValidator.cs
- SelectedDatesCollection.cs
- SegmentInfo.cs
- ILGenerator.cs
- SqlUtils.cs
- HandlerBase.cs
- WorkflowServiceNamespace.cs
- EdmFunctionAttribute.cs
- HttpDictionary.cs
- Literal.cs
- EncodingDataItem.cs
- OrderPreservingPipeliningMergeHelper.cs
- DataServiceBehavior.cs
- BufferedStream2.cs
- PrintEvent.cs
- ImageDrawing.cs
- PixelFormat.cs
- HMACSHA512.cs
- NotSupportedException.cs
- DataGridHelper.cs
- TypeCodeDomSerializer.cs
- TreeNodeConverter.cs
- HybridDictionary.cs
- StringBuilder.cs
- OleAutBinder.cs
- ListItemConverter.cs
- KeyedHashAlgorithm.cs
- Propagator.JoinPropagator.cs
- ClientBuildManager.cs
- MimeTypePropertyAttribute.cs
- PersonalizationDictionary.cs
- ResourceAttributes.cs
- MaterialCollection.cs
- ConnectionPoint.cs
- ScrollData.cs
- Configuration.cs
- HandlerFactoryWrapper.cs
- StackOverflowException.cs
- NativeWindow.cs
- XmlJsonReader.cs
- PerformanceCounterPermission.cs
- Substitution.cs
- TransactionFlowOption.cs
- EncryptedType.cs
- SendActivityDesignerTheme.cs
- METAHEADER.cs
- WebPartsPersonalizationAuthorization.cs