Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / StyleCollection.cs / 1 / StyleCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Collections; using System.ComponentModel; using System.Security.Permissions; using System.Web; ////// Provides a collection of Style objects /// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class StyleCollection : StateManagedCollection { private static readonly Type[] knownTypes = new Type[] { typeof(Style) }; internal StyleCollection() { } ////// Gets the Style at the specified index /// public Style this[int i] { get { return (Style)((IList)this)[i]; } set { ((IList)this)[i] = value; } } ////// Adds a Style to the collection /// public int Add(Style style) { return ((IList)this).Add(style); } public bool Contains(Style style) { return ((IList)this).Contains(style); } public void CopyTo(Style[] styleArray, int index) { base.CopyTo(styleArray, index); } public int IndexOf(Style style) { return ((IList)this).IndexOf(style); } ////// Inserts a Treelevel at the specified index /// public void Insert(int index, Style style) { ((IList)this).Insert(index, style); } protected override object CreateKnownType(int index) { return new Style(); } protected override Type[] GetKnownTypes() { return knownTypes; } ////// Removes a Style from the collection. /// public void Remove(Style style) { ((IList)this).Remove(style); } ////// Removes a Style from the collection at a given index. /// public void RemoveAt(int index) { ((IList)this).RemoveAt(index); } protected override void SetDirtyObject(object o) { if (o is Style) { ((Style)o).SetDirty(); } } } } // 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
- objectquery_tresulttype.cs
- InlineCollection.cs
- PKCS1MaskGenerationMethod.cs
- ObjectDataSourceChooseTypePanel.cs
- UrlAuthFailedErrorFormatter.cs
- AssociatedControlConverter.cs
- UpdateManifestForBrowserApplication.cs
- FontWeight.cs
- ServiceNameElementCollection.cs
- Viewport3DAutomationPeer.cs
- DockPanel.cs
- WinInet.cs
- Package.cs
- XmlEventCache.cs
- TripleDESCryptoServiceProvider.cs
- IgnoreSection.cs
- DebugInfoExpression.cs
- SchemaMapping.cs
- FormView.cs
- SynchronizationValidator.cs
- MembershipUser.cs
- StackSpiller.cs
- HelpProvider.cs
- SelectionRange.cs
- HtmlInputText.cs
- ProgressBar.cs
- EventHandlerList.cs
- MouseEvent.cs
- printdlgexmarshaler.cs
- EncodingInfo.cs
- WindowsImpersonationContext.cs
- RtfFormatStack.cs
- HttpApplicationFactory.cs
- SamlSubjectStatement.cs
- DetailsViewPageEventArgs.cs
- EntityRecordInfo.cs
- ImageMetadata.cs
- CollectionViewGroup.cs
- SimpleModelProvider.cs
- AssemblyResourceLoader.cs
- AppSecurityManager.cs
- SignatureResourcePool.cs
- EmptyStringExpandableObjectConverter.cs
- HtmlContainerControl.cs
- CompositeKey.cs
- CurrencyManager.cs
- ContentTextAutomationPeer.cs
- BCryptNative.cs
- XmlElement.cs
- GraphicsPathIterator.cs
- GZipStream.cs
- ReachFixedDocumentSerializerAsync.cs
- TableAdapterManagerGenerator.cs
- FormClosingEvent.cs
- TextChange.cs
- HatchBrush.cs
- ClientConfigurationHost.cs
- PartialTrustVisibleAssembliesSection.cs
- WebExceptionStatus.cs
- ComponentManagerBroker.cs
- TabControlAutomationPeer.cs
- TextRangeEdit.cs
- TrackingStringDictionary.cs
- WinOEToolBoxItem.cs
- ButtonBaseAutomationPeer.cs
- QueryStringParameter.cs
- IndentedWriter.cs
- AsyncPostBackTrigger.cs
- QueryReaderSettings.cs
- CrossAppDomainChannel.cs
- StylusSystemGestureEventArgs.cs
- ColorPalette.cs
- RegexWorker.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- WindowsHyperlink.cs
- CodeDelegateInvokeExpression.cs
- TextTreeExtractElementUndoUnit.cs
- HtmlProps.cs
- Condition.cs
- ErrorStyle.cs
- HexParser.cs
- FilterableAttribute.cs
- DataGridRowDetailsEventArgs.cs
- XmlDocumentSchema.cs
- DbConnectionPool.cs
- HttpCookiesSection.cs
- SelectManyQueryOperator.cs
- RoleServiceManager.cs
- ProfileGroupSettings.cs
- PrintSchema.cs
- TransformationRules.cs
- BookmarkScopeInfo.cs
- Encoder.cs
- AttachInfo.cs
- CompositeControlDesigner.cs
- MultipartContentParser.cs
- EntitySetRetriever.cs
- Error.cs
- DesignerImageAdapter.cs
- ExpressionVisitorHelpers.cs