Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / SubMenuStyleCollection.cs / 1 / SubMenuStyleCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Collections; using System.ComponentModel; using System.Web; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class SubMenuStyleCollection : StateManagedCollection { private static readonly Type[] knownTypes = new Type[] { typeof(SubMenuStyle) }; internal SubMenuStyleCollection() { } protected override void OnInsert(int index, object value) { base.OnInsert(index, value); if (value is SubMenuStyle) { SubMenuStyle style = (SubMenuStyle)value; style.Font.Underline = style.Font.Underline; } else { throw new ArgumentException(SR.GetString(SR.SubMenuStyleCollection_InvalidArgument), "value"); } } public SubMenuStyle this[int i] { get { return (SubMenuStyle)((IList)this)[i]; } set { ((IList)this)[i] = value; } } public int Add(SubMenuStyle style) { return ((IList)this).Add(style); } public bool Contains(SubMenuStyle style) { return ((IList)this).Contains(style); } public void CopyTo(SubMenuStyle[] styleArray, int index) { base.CopyTo(styleArray, index); } public int IndexOf(SubMenuStyle style) { return ((IList)this).IndexOf(style); } public void Insert(int index, SubMenuStyle style) { ((IList)this).Insert(index, style); } protected override object CreateKnownType(int index) { return new SubMenuStyle(); } protected override Type[] GetKnownTypes() { return knownTypes; } public void Remove(SubMenuStyle style) { ((IList)this).Remove(style); } public void RemoveAt(int index) { ((IList)this).RemoveAt(index); } protected override void SetDirtyObject(object o) { if (o is SubMenuStyle) { ((SubMenuStyle)o).SetDirty(); } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DropTarget.cs
- XhtmlBasicTextViewAdapter.cs
- DateTimePickerDesigner.cs
- CodeTypeReferenceCollection.cs
- BitmapDecoder.cs
- SQLDateTimeStorage.cs
- EventsTab.cs
- RecognizedPhrase.cs
- ToolbarAUtomationPeer.cs
- PagerSettings.cs
- ImageUrlEditor.cs
- ErrorsHelper.cs
- ReadOnlyDataSource.cs
- SecurityDescriptor.cs
- HyperlinkAutomationPeer.cs
- TemplatedWizardStep.cs
- MetabaseServerConfig.cs
- StreamingContext.cs
- ExportFileRequest.cs
- TransformDescriptor.cs
- TextPointerBase.cs
- XPathCompileException.cs
- CloseCollectionAsyncResult.cs
- EventLogPermissionEntryCollection.cs
- EventBuilder.cs
- ValidatedControlConverter.cs
- CreateUserWizard.cs
- SecurityUniqueId.cs
- Win32Interop.cs
- ObjectStateManager.cs
- EntityConnection.cs
- EntityCollectionChangedParams.cs
- ServiceProviders.cs
- OverflowException.cs
- PolyQuadraticBezierSegment.cs
- Exceptions.cs
- MessagePartDescription.cs
- SqlDataReader.cs
- Material.cs
- SspiHelper.cs
- PerSessionInstanceContextProvider.cs
- XmlSchemaSet.cs
- C14NUtil.cs
- LinqDataSourceContextEventArgs.cs
- DocumentGridContextMenu.cs
- RequestCacheManager.cs
- CalendarData.cs
- __FastResourceComparer.cs
- CompileXomlTask.cs
- CodeLabeledStatement.cs
- HttpSysSettings.cs
- TimerEventSubscriptionCollection.cs
- XPathDescendantIterator.cs
- CustomError.cs
- StringReader.cs
- XmlWriterTraceListener.cs
- MetadataPropertyAttribute.cs
- PropertyItem.cs
- TimeSpanValidator.cs
- TypeLoadException.cs
- CodeSnippetExpression.cs
- DataTableClearEvent.cs
- UnknownBitmapDecoder.cs
- coordinatorfactory.cs
- ImageAnimator.cs
- BaseCodeDomTreeGenerator.cs
- ContentDesigner.cs
- ResourceDisplayNameAttribute.cs
- FixedDocument.cs
- XPathSelfQuery.cs
- NumericUpDownAcceleration.cs
- Soap12ProtocolImporter.cs
- Imaging.cs
- DetailsViewActionList.cs
- SrgsElementList.cs
- LinqToSqlWrapper.cs
- SpellerStatusTable.cs
- GridLength.cs
- RenderTargetBitmap.cs
- HatchBrush.cs
- BaseValidatorDesigner.cs
- Pkcs7Signer.cs
- PointAnimationClockResource.cs
- ClientUrlResolverWrapper.cs
- ExpressionBuilderCollection.cs
- PersonalizationProviderHelper.cs
- _ProxyRegBlob.cs
- IssuedTokenClientBehaviorsElement.cs
- BoolExpressionVisitors.cs
- BooleanStorage.cs
- XmlEnumAttribute.cs
- DPAPIProtectedConfigurationProvider.cs
- GridViewRowCollection.cs
- AmbientProperties.cs
- PassportIdentity.cs
- IdentityHolder.cs
- TemplateAction.cs
- XmlWellformedWriter.cs
- SafeEventLogReadHandle.cs
- Int32Collection.cs