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
- GraphicsPath.cs
- SchemaImporter.cs
- TcpHostedTransportConfiguration.cs
- WebHttpSecurityElement.cs
- DBCommandBuilder.cs
- ApplicationServiceManager.cs
- RecordsAffectedEventArgs.cs
- ResourceDisplayNameAttribute.cs
- WsatTransactionHeader.cs
- AnnouncementInnerClientCD1.cs
- safex509handles.cs
- Operand.cs
- TileBrush.cs
- TraceLevelStore.cs
- LockedHandleGlyph.cs
- PolyLineSegmentFigureLogic.cs
- login.cs
- MsmqIntegrationSecurityMode.cs
- TimelineCollection.cs
- ButtonRenderer.cs
- IsolatedStorageFileStream.cs
- TypeUsageBuilder.cs
- SQLRoleProvider.cs
- HttpClientChannel.cs
- SyntaxCheck.cs
- RoutingExtensionElement.cs
- EmptyControlCollection.cs
- NopReturnReader.cs
- AuthenticationService.cs
- QueueNameHelper.cs
- AsyncOperation.cs
- ExpandedWrapper.cs
- EventProxy.cs
- XmlnsCompatibleWithAttribute.cs
- WebEventCodes.cs
- StandardCommands.cs
- PermissionSetEnumerator.cs
- TimeIntervalCollection.cs
- ScrollEvent.cs
- Matrix.cs
- SingleAnimationUsingKeyFrames.cs
- WebRequestModulesSection.cs
- DataGridViewRowsRemovedEventArgs.cs
- MessageQueueConverter.cs
- WebPartVerbsEventArgs.cs
- GradientBrush.cs
- ServiceDocument.cs
- TextTreeRootTextBlock.cs
- DictionarySurrogate.cs
- SQLBytes.cs
- DataSet.cs
- StrokeRenderer.cs
- URL.cs
- WebPartConnectVerb.cs
- HostProtectionPermission.cs
- ValueQuery.cs
- ProviderCollection.cs
- SecurityPermission.cs
- DateBoldEvent.cs
- TypeConverters.cs
- ColorMatrix.cs
- ComNativeDescriptor.cs
- DockAndAnchorLayout.cs
- UrlPath.cs
- ScriptResourceDefinition.cs
- PlaceHolder.cs
- WebBrowserContainer.cs
- ZipIOBlockManager.cs
- UrlRoutingHandler.cs
- WeakRefEnumerator.cs
- MonthCalendarDesigner.cs
- Size.cs
- _NtlmClient.cs
- LinkTarget.cs
- TypeConverterValueSerializer.cs
- Partitioner.cs
- GeometryGroup.cs
- XmlRawWriter.cs
- HttpWebRequestElement.cs
- StateInitializationDesigner.cs
- DiscoveryDefaults.cs
- ListBoxAutomationPeer.cs
- AddInActivator.cs
- MSAAEventDispatcher.cs
- CacheVirtualItemsEvent.cs
- BlurEffect.cs
- SafeBitVector32.cs
- VideoDrawing.cs
- CodeTypeParameterCollection.cs
- Encoding.cs
- ListCollectionView.cs
- WebBrowserProgressChangedEventHandler.cs
- DesignerLoader.cs
- FixedSOMContainer.cs
- Decoder.cs
- FileNotFoundException.cs
- IconBitmapDecoder.cs
- DataBindingExpressionBuilder.cs
- DetailsViewInsertEventArgs.cs
- DataRowChangeEvent.cs