Code:
/ DotNET / DotNET / 8.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
- CacheAxisQuery.cs
- CachedFontFace.cs
- FilteredXmlReader.cs
- MatrixCamera.cs
- SerializationException.cs
- IERequestCache.cs
- WindowsGraphicsWrapper.cs
- VersionedStream.cs
- DeferrableContentConverter.cs
- AssemblyCache.cs
- Query.cs
- EventLogPermissionAttribute.cs
- TextInfo.cs
- NegationPusher.cs
- WebPartVerbsEventArgs.cs
- ByteConverter.cs
- DebugInfo.cs
- HyperLinkField.cs
- MetadataPropertyvalue.cs
- HttpResponse.cs
- SiteMapNode.cs
- InstanceNotReadyException.cs
- unitconverter.cs
- ListenerElementsCollection.cs
- Focus.cs
- ResourceManager.cs
- InvalidWMPVersionException.cs
- SqlUserDefinedTypeAttribute.cs
- CodeRegionDirective.cs
- QueryStringHandler.cs
- AdCreatedEventArgs.cs
- _ScatterGatherBuffers.cs
- TableItemStyle.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- IIS7WorkerRequest.cs
- ResourceManagerWrapper.cs
- NonValidatingSecurityTokenAuthenticator.cs
- ImageKeyConverter.cs
- Cursors.cs
- XmlIlVisitor.cs
- QuotaExceededException.cs
- DataServiceContext.cs
- MaskInputRejectedEventArgs.cs
- UpdateProgress.cs
- DataListItemEventArgs.cs
- SecurityRuntime.cs
- ServiceThrottlingBehavior.cs
- MdImport.cs
- XamlReader.cs
- Control.cs
- Command.cs
- ActiveXContainer.cs
- NullableIntMinMaxAggregationOperator.cs
- Stylesheet.cs
- EntityCommand.cs
- SmtpReplyReader.cs
- VirtualDirectoryMapping.cs
- LineBreakRecord.cs
- WorkflowServiceNamespace.cs
- EntityContainer.cs
- ValuePattern.cs
- FullTextState.cs
- XmlCollation.cs
- WorkflowDebuggerSteppingAttribute.cs
- FixedSOMLineRanges.cs
- AppDomain.cs
- BrushConverter.cs
- GridSplitter.cs
- SimpleTypeResolver.cs
- MergePropertyDescriptor.cs
- XsdDataContractExporter.cs
- TextProperties.cs
- SettingsBase.cs
- SettingsSavedEventArgs.cs
- CursorConverter.cs
- LookupNode.cs
- ImageMapEventArgs.cs
- precedingsibling.cs
- ListDictionaryInternal.cs
- FixedTextContainer.cs
- ParserContext.cs
- PermissionSetEnumerator.cs
- ResourcePermissionBase.cs
- ListBindingConverter.cs
- ChannelPoolSettingsElement.cs
- TreeViewItemAutomationPeer.cs
- AnnouncementInnerClientCD1.cs
- ProviderConnectionPoint.cs
- HttpHandlerAction.cs
- FaultCode.cs
- recordstatescratchpad.cs
- RequestCachePolicyConverter.cs
- OLEDB_Util.cs
- HealthMonitoringSectionHelper.cs
- InsufficientMemoryException.cs
- KeyboardNavigation.cs
- ProtocolViolationException.cs
- ItemContainerGenerator.cs
- CodeParameterDeclarationExpression.cs
- DocumentGrid.cs