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
- ConditionCollection.cs
- ObjectContext.cs
- TimeSpanConverter.cs
- ColumnBinding.cs
- MenuAdapter.cs
- LabelLiteral.cs
- NativeMethods.cs
- ScriptComponentDescriptor.cs
- UserNameSecurityTokenProvider.cs
- SoapFormatterSinks.cs
- SqlRewriteScalarSubqueries.cs
- ReaderContextStackData.cs
- XamlFilter.cs
- SHA256Managed.cs
- HtmlTable.cs
- SupportingTokenBindingElement.cs
- TogglePatternIdentifiers.cs
- CachedFontFace.cs
- SortKey.cs
- COM2ColorConverter.cs
- Row.cs
- DesignerLinkAdapter.cs
- ExclusiveTcpTransportManager.cs
- DbMetaDataCollectionNames.cs
- NavigationHelper.cs
- PartialCachingAttribute.cs
- _FtpControlStream.cs
- BigIntegerStorage.cs
- QueryExecutionOption.cs
- NonValidatingSecurityTokenAuthenticator.cs
- Int32CollectionConverter.cs
- QueryCursorEventArgs.cs
- GlobalItem.cs
- CurrentChangingEventArgs.cs
- Misc.cs
- SizeFConverter.cs
- TextContainerChangedEventArgs.cs
- LinkedResource.cs
- SqlExpander.cs
- ProcessDesigner.cs
- TrackBar.cs
- RemotingServices.cs
- path.cs
- contentDescriptor.cs
- StringConverter.cs
- StringSource.cs
- DataGridCellEditEndingEventArgs.cs
- TdsValueSetter.cs
- GACMembershipCondition.cs
- WaitForChangedResult.cs
- DefaultValidator.cs
- TableItemStyle.cs
- Rights.cs
- Tokenizer.cs
- SqlConnectionPoolProviderInfo.cs
- EnumerableWrapperWeakToStrong.cs
- FormViewPageEventArgs.cs
- XmlSignificantWhitespace.cs
- WizardDesigner.cs
- DataGridBoolColumn.cs
- FactoryRecord.cs
- SmiContext.cs
- DataGridCaption.cs
- CallbackBehaviorAttribute.cs
- ScriptReferenceEventArgs.cs
- ComponentResourceManager.cs
- DragDeltaEventArgs.cs
- XmlnsPrefixAttribute.cs
- DataSourceIDConverter.cs
- XamlWrappingReader.cs
- BitmapEffectOutputConnector.cs
- GraphicsPathIterator.cs
- HMAC.cs
- XmlTextReaderImplHelpers.cs
- ContentPlaceHolder.cs
- PropagatorResult.cs
- CustomErrorCollection.cs
- Keyboard.cs
- ProfileProvider.cs
- ReflectionUtil.cs
- PlatformCulture.cs
- ServiceChannelProxy.cs
- RegisteredArrayDeclaration.cs
- EventLogPermissionEntryCollection.cs
- EmptyImpersonationContext.cs
- DataGridTableCollection.cs
- QuestionEventArgs.cs
- ByteStreamMessage.cs
- counter.cs
- TreeWalkHelper.cs
- Stylus.cs
- ApplicationDirectory.cs
- InfoCardBinaryReader.cs
- ISO2022Encoding.cs
- ResourcePermissionBaseEntry.cs
- SqlBulkCopyColumnMapping.cs
- BidPrivateBase.cs
- JournalEntryStack.cs
- CounterSample.cs
- GatewayDefinition.cs