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
- PropertyMappingExceptionEventArgs.cs
- AccessDataSourceDesigner.cs
- VisualStyleElement.cs
- Compiler.cs
- JpegBitmapDecoder.cs
- SafeCertificateContext.cs
- ContractMethodInfo.cs
- TemplatePropertyEntry.cs
- TranslateTransform3D.cs
- RequestContext.cs
- ObjectDataSource.cs
- FormViewCommandEventArgs.cs
- KeyedCollection.cs
- Model3DGroup.cs
- SessionEndingEventArgs.cs
- HttpClientCertificate.cs
- FunctionNode.cs
- OperationContractAttribute.cs
- Empty.cs
- MappingModelBuildProvider.cs
- ValidatedMobileControlConverter.cs
- XmlSchemaGroupRef.cs
- PathParser.cs
- ApplicationSecurityInfo.cs
- WindowsProgressbar.cs
- EventMetadata.cs
- WrappingXamlSchemaContext.cs
- ModuleBuilder.cs
- SafeNativeMethodsOther.cs
- DataGridViewAutoSizeModeEventArgs.cs
- X509Extension.cs
- XmlSignificantWhitespace.cs
- BindingMAnagerBase.cs
- AutoResetEvent.cs
- ProjectionPlan.cs
- WebPartConnection.cs
- Profiler.cs
- CodeSnippetStatement.cs
- XmlName.cs
- EDesignUtil.cs
- AddressHeader.cs
- ExtensionSimplifierMarkupObject.cs
- WebServiceEnumData.cs
- DetailsViewCommandEventArgs.cs
- UIElementPropertyUndoUnit.cs
- SecurityElement.cs
- DesignBinding.cs
- ParsedAttributeCollection.cs
- ListChangedEventArgs.cs
- ThemeDirectoryCompiler.cs
- ReferenceEqualityComparer.cs
- InstanceLockQueryResult.cs
- Binding.cs
- SafePEFileHandle.cs
- SafeNativeMethods.cs
- FileSystemWatcher.cs
- SimpleTypesSurrogate.cs
- StaticFileHandler.cs
- WebException.cs
- AbandonedMutexException.cs
- X509AudioLogo.cs
- TagMapCollection.cs
- DataGridDesigner.cs
- DataGridRowHeader.cs
- DataGridViewTextBoxCell.cs
- HwndProxyElementProvider.cs
- IPEndPoint.cs
- PngBitmapEncoder.cs
- RoutedPropertyChangedEventArgs.cs
- FileNameEditor.cs
- regiisutil.cs
- NotificationContext.cs
- TimeoutValidationAttribute.cs
- RadioButton.cs
- sqlser.cs
- TriggerBase.cs
- ObjectDataSourceSelectingEventArgs.cs
- TimeBoundedCache.cs
- WindowsScrollBarBits.cs
- CollectionViewGroupInternal.cs
- PolyQuadraticBezierSegment.cs
- AnimationStorage.cs
- ContentFilePart.cs
- DataTransferEventArgs.cs
- SoapAttributeAttribute.cs
- SetterBaseCollection.cs
- FileSystemWatcher.cs
- ImageCodecInfoPrivate.cs
- _OverlappedAsyncResult.cs
- CornerRadius.cs
- Constants.cs
- WindowsScrollBarBits.cs
- BufferModeSettings.cs
- XamlWrapperReaders.cs
- CqlLexerHelpers.cs
- StackBuilderSink.cs
- SoapReflectionImporter.cs
- Baml2006Reader.cs
- ParallelTimeline.cs
- NumberFunctions.cs