Code:
/ DotNET / DotNET / 8.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
- Span.cs
- ListView.cs
- EllipticalNodeOperations.cs
- Duration.cs
- RegistrySecurity.cs
- StreamMarshaler.cs
- RIPEMD160Managed.cs
- SystemNetworkInterface.cs
- _DisconnectOverlappedAsyncResult.cs
- ClientApiGenerator.cs
- UpdatePanel.cs
- NamespaceInfo.cs
- Decorator.cs
- GraphicsContext.cs
- Number.cs
- PathData.cs
- X509ChainPolicy.cs
- IndexOutOfRangeException.cs
- XsdBuilder.cs
- ToolStripSplitButton.cs
- HttpSessionStateWrapper.cs
- TransactionContextValidator.cs
- WebServiceEndpoint.cs
- RefType.cs
- ConstNode.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- TlsSspiNegotiation.cs
- PropertyConverter.cs
- ImportContext.cs
- Itemizer.cs
- UrlMapping.cs
- ProtocolElementCollection.cs
- SettingsPropertyValue.cs
- FrameworkName.cs
- ViewManager.cs
- ISAPIWorkerRequest.cs
- Point3DCollectionConverter.cs
- X509SecurityToken.cs
- XmlSchemaAttributeGroup.cs
- EventTrigger.cs
- TraceShell.cs
- TraceSource.cs
- SoapClientMessage.cs
- PropertyMap.cs
- FacetEnabledSchemaElement.cs
- SecUtil.cs
- XmlSchemaObjectCollection.cs
- TabControl.cs
- SHA384.cs
- RestHandlerFactory.cs
- ExpressionLexer.cs
- BuildManager.cs
- ScriptHandlerFactory.cs
- BitSet.cs
- BaseTemplatedMobileComponentEditor.cs
- AsymmetricAlgorithm.cs
- Number.cs
- DataGridColumnHeadersPresenter.cs
- BitmapData.cs
- Stack.cs
- NoneExcludedImageIndexConverter.cs
- Button.cs
- RuleSettingsCollection.cs
- DataGridViewComboBoxCell.cs
- FrugalList.cs
- SamlDelegatingWriter.cs
- CaseInsensitiveHashCodeProvider.cs
- WindowsImpersonationContext.cs
- SharingService.cs
- Rules.cs
- LocalizabilityAttribute.cs
- ContractMethodInfo.cs
- OledbConnectionStringbuilder.cs
- DataBindingList.cs
- WaitHandleCannotBeOpenedException.cs
- HttpModuleAction.cs
- InvokePatternIdentifiers.cs
- JavaScriptString.cs
- SystemIPv6InterfaceProperties.cs
- Soap.cs
- HtmlTitle.cs
- BoundsDrawingContextWalker.cs
- BinaryObjectReader.cs
- QueryStringParameter.cs
- Helper.cs
- SamlAssertionKeyIdentifierClause.cs
- UnsafeNativeMethods.cs
- XamlPointCollectionSerializer.cs
- TextRangeBase.cs
- RsaKeyIdentifierClause.cs
- BufferedStream.cs
- GetPageNumberCompletedEventArgs.cs
- EntityExpressionVisitor.cs
- XmlHelper.cs
- handlecollector.cs
- CultureTable.cs
- _ListenerAsyncResult.cs
- Geometry.cs
- LocalIdKeyIdentifierClause.cs
- JsonDeserializer.cs