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
- SafeCancelMibChangeNotify.cs
- GridViewSortEventArgs.cs
- Exceptions.cs
- RightsManagementPermission.cs
- HtmlPanelAdapter.cs
- PanelDesigner.cs
- WriterOutput.cs
- ImageAttributes.cs
- connectionpool.cs
- ReceiveParametersContent.cs
- FocusTracker.cs
- SmtpFailedRecipientsException.cs
- ReferenceConverter.cs
- PanelDesigner.cs
- HttpServerVarsCollection.cs
- Int32CAMarshaler.cs
- ResumeStoryboard.cs
- TransactionInformation.cs
- EventlogProvider.cs
- EventSetterHandlerConverter.cs
- XmlHelper.cs
- InsufficientMemoryException.cs
- HttpCacheVaryByContentEncodings.cs
- recordstate.cs
- DrawingCollection.cs
- ScrollBar.cs
- AutomationEventArgs.cs
- _RequestCacheProtocol.cs
- Model3D.cs
- XmlWriter.cs
- SimpleFileLog.cs
- BinaryObjectInfo.cs
- BindingManagerDataErrorEventArgs.cs
- SqlUtil.cs
- CodeCompiler.cs
- IODescriptionAttribute.cs
- SelectionWordBreaker.cs
- Rect3DConverter.cs
- ClientSettingsStore.cs
- HandleCollector.cs
- XPathBinder.cs
- LockCookie.cs
- NotCondition.cs
- MessageQueueEnumerator.cs
- SettingsBindableAttribute.cs
- Oid.cs
- BaseDataListComponentEditor.cs
- SafeCoTaskMem.cs
- CommonObjectSecurity.cs
- CompositeFontInfo.cs
- ZipIOModeEnforcingStream.cs
- TerminatingOperationBehavior.cs
- XmlSchemaImporter.cs
- GridLength.cs
- PathGeometry.cs
- DbConnectionHelper.cs
- MouseEvent.cs
- ObjectPersistData.cs
- TextCollapsingProperties.cs
- Rule.cs
- ProcessHost.cs
- XmlReflectionMember.cs
- AsyncResult.cs
- CompilerCollection.cs
- HttpUnhandledOperationInvoker.cs
- XpsException.cs
- CornerRadius.cs
- DbFunctionCommandTree.cs
- StreamSecurityUpgradeInitiatorBase.cs
- BitmapDecoder.cs
- HTTPRemotingHandler.cs
- _ListenerResponseStream.cs
- UriTemplateQueryValue.cs
- PageHandlerFactory.cs
- WebPartConnectVerb.cs
- Int32RectConverter.cs
- CollectionChangedEventManager.cs
- Activation.cs
- DataServiceQueryException.cs
- PermissionRequestEvidence.cs
- SQLDecimalStorage.cs
- ExecutedRoutedEventArgs.cs
- Vector.cs
- DataBinding.cs
- ChangeProcessor.cs
- AssemblyBuilder.cs
- unitconverter.cs
- JournalEntry.cs
- SourceItem.cs
- Compiler.cs
- XamlDesignerSerializationManager.cs
- SafeCoTaskMem.cs
- SerialErrors.cs
- OperationGenerator.cs
- PlacementWorkspace.cs
- XmlSignatureProperties.cs
- CompositionAdorner.cs
- BaseComponentEditor.cs
- SaveFileDialog.cs
- QueryResults.cs