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
- QEncodedStream.cs
- AdjustableArrowCap.cs
- DataControlFieldHeaderCell.cs
- WebConfigurationManager.cs
- CanExecuteRoutedEventArgs.cs
- GeneralTransform2DTo3D.cs
- SecurityPermission.cs
- HtmlListAdapter.cs
- PrintEvent.cs
- ModelChangedEventArgsImpl.cs
- AnnotationHighlightLayer.cs
- Operand.cs
- SerializerDescriptor.cs
- Duration.cs
- GeneratedView.cs
- XmlParserContext.cs
- XdrBuilder.cs
- LineProperties.cs
- SimpleFieldTemplateFactory.cs
- X509RawDataKeyIdentifierClause.cs
- ComNativeDescriptor.cs
- CornerRadius.cs
- ILGenerator.cs
- TypeUtils.cs
- FontWeights.cs
- SourceItem.cs
- MemoryPressure.cs
- CodeLabeledStatement.cs
- WSSecureConversationFeb2005.cs
- XPathDocumentIterator.cs
- Operand.cs
- AttributeExtensions.cs
- ReferentialConstraint.cs
- TableLayoutCellPaintEventArgs.cs
- JsonStringDataContract.cs
- DocumentApplicationJournalEntry.cs
- MarginsConverter.cs
- PersistenceContext.cs
- InputManager.cs
- DbConnectionOptions.cs
- EntityKey.cs
- MessageSecurityVersionConverter.cs
- EventLogReader.cs
- HistoryEventArgs.cs
- COM2ComponentEditor.cs
- QueryableFilterUserControl.cs
- TypeViewSchema.cs
- BufferedGraphics.cs
- SizeChangedInfo.cs
- BamlRecordReader.cs
- Calendar.cs
- ScrollItemPatternIdentifiers.cs
- DictionaryKeyPropertyAttribute.cs
- SharedPersonalizationStateInfo.cs
- login.cs
- ExpandedWrapper.cs
- FrameworkReadOnlyPropertyMetadata.cs
- columnmapkeybuilder.cs
- IgnoreFlushAndCloseStream.cs
- BasicBrowserDialog.cs
- WhiteSpaceTrimStringConverter.cs
- CustomAttributeFormatException.cs
- SafeBitVector32.cs
- ProxyWebPart.cs
- FunctionNode.cs
- VirtualPath.cs
- NavigationCommands.cs
- ActiveXHelper.cs
- Utils.cs
- TextEmbeddedObject.cs
- BlurBitmapEffect.cs
- ResourceContainerWrapper.cs
- TransactionFlowBindingElement.cs
- HtmlHistory.cs
- AttachedAnnotation.cs
- LocalizableAttribute.cs
- AutomationFocusChangedEventArgs.cs
- TraceSection.cs
- XmlNodeComparer.cs
- IssuedSecurityTokenProvider.cs
- BaseTransportHeaders.cs
- IdentifierCollection.cs
- CodeSnippetTypeMember.cs
- DataQuery.cs
- OperationInfo.cs
- ManipulationCompletedEventArgs.cs
- Control.cs
- ViewKeyConstraint.cs
- BoundField.cs
- ContextMenu.cs
- StructuredType.cs
- ControlBindingsCollection.cs
- SafeHandle.cs
- XmlAutoDetectWriter.cs
- PictureBox.cs
- BooleanConverter.cs
- COMException.cs
- Bits.cs
- QilStrConcat.cs
- ScriptRef.cs