Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / DesignerAutoFormat.cs / 1 / DesignerAutoFormat.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design { using System; using System.ComponentModel.Design; using System.Drawing; using System.Web.UI; using System.Web.UI.WebControls; using Control = System.Web.UI.Control; ///public abstract class DesignerAutoFormat { private string _name; private DesignerAutoFormatStyle _style; protected DesignerAutoFormat(string name) { if ((name == null) || (name.Length == 0)) { throw new ArgumentNullException("name"); } _name = name; } /// public string Name { get { return _name; } } public DesignerAutoFormatStyle Style { get { if (_style == null) { _style = new DesignerAutoFormatStyle(); } return _style; } } /// public abstract void Apply(Control control); public virtual Control GetPreviewControl(Control runtimeControl) { IDesignerHost host = (IDesignerHost)runtimeControl.Site.GetService(typeof(IDesignerHost)); ControlDesigner designer = host.GetDesigner(runtimeControl) as ControlDesigner; if (designer != null) { return designer.CreateClonedControl(host, true); } return null; } /// public override string ToString() { return Name; } } } // 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
- TemplateContent.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- TableItemProviderWrapper.cs
- DropSource.cs
- ViewGenResults.cs
- NetDispatcherFaultException.cs
- BooleanAnimationBase.cs
- GuidTagList.cs
- ManagementScope.cs
- AtomServiceDocumentSerializer.cs
- Win32Interop.cs
- DateTimeFormat.cs
- SqlComparer.cs
- ObjectListCommandsPage.cs
- SolidBrush.cs
- WebEvents.cs
- SerializationFieldInfo.cs
- WebPartCloseVerb.cs
- RepeaterCommandEventArgs.cs
- COM2AboutBoxPropertyDescriptor.cs
- _FixedSizeReader.cs
- SpecialNameAttribute.cs
- PropagatorResult.cs
- SecurityCriticalDataForSet.cs
- EntityDataSourceConfigureObjectContext.cs
- ViewPort3D.cs
- JumpPath.cs
- CallInfo.cs
- MachineKey.cs
- XmlImplementation.cs
- DbConnectionInternal.cs
- DesignTimeVisibleAttribute.cs
- HtmlInputSubmit.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- InvalidAsynchronousStateException.cs
- MediaSystem.cs
- SqlCaseSimplifier.cs
- RectangleF.cs
- WindowsFormsSectionHandler.cs
- StorageModelBuildProvider.cs
- PanningMessageFilter.cs
- VScrollProperties.cs
- DataTableMappingCollection.cs
- SqlNodeTypeOperators.cs
- TrustManager.cs
- WsatServiceCertificate.cs
- OleDbConnectionFactory.cs
- DocumentEventArgs.cs
- HashSetEqualityComparer.cs
- GetRecipientListRequest.cs
- GeneralTransformGroup.cs
- CompoundFileIOPermission.cs
- ProviderUtil.cs
- TemplateControlParser.cs
- mactripleDES.cs
- serverconfig.cs
- ContainerParagraph.cs
- ConnectorRouter.cs
- DbBuffer.cs
- XmlSchemaValidationException.cs
- SmtpMail.cs
- UdpMessageProperty.cs
- XmlNullResolver.cs
- EventEntry.cs
- TileModeValidation.cs
- SqlBuffer.cs
- HtmlEmptyTagControlBuilder.cs
- Pointer.cs
- XmlToDatasetMap.cs
- FixedSOMPageElement.cs
- Win32Exception.cs
- ILGenerator.cs
- DispatcherFrame.cs
- Encoding.cs
- SliderAutomationPeer.cs
- KeyNotFoundException.cs
- FormsAuthenticationUser.cs
- DataConnectionHelper.cs
- BamlWriter.cs
- HWStack.cs
- DesignerActionHeaderItem.cs
- FileSystemWatcher.cs
- Matrix3D.cs
- ExpressionEditorAttribute.cs
- TimeSpanStorage.cs
- WebBrowserBase.cs
- XmlRawWriterWrapper.cs
- RenderDataDrawingContext.cs
- CAGDesigner.cs
- SmtpLoginAuthenticationModule.cs
- Assert.cs
- CodeMemberEvent.cs
- BaseUriHelper.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- SafeFindHandle.cs
- PagedDataSource.cs
- LocalizationCodeDomSerializer.cs
- ConnectionManagementElementCollection.cs
- Transform.cs
- LogWriteRestartAreaState.cs