Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / SubMenuStyleCollection.cs / 1305376 / 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; 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(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyGridEditorPart.cs
- ConnectionInterfaceCollection.cs
- ReplacementText.cs
- DesignTimeVisibleAttribute.cs
- XamlSerializer.cs
- DBConcurrencyException.cs
- StylusSystemGestureEventArgs.cs
- SafeFileHandle.cs
- _WebProxyDataBuilder.cs
- TabletDeviceInfo.cs
- ByteStorage.cs
- ValueTypeIndexerReference.cs
- CodeDOMUtility.cs
- ElementAction.cs
- SqlBulkCopyColumnMappingCollection.cs
- SchemaReference.cs
- HiddenFieldPageStatePersister.cs
- SerializationEventsCache.cs
- MoveSizeWinEventHandler.cs
- OptionalMessageQuery.cs
- WindowsRegion.cs
- DebugHandleTracker.cs
- PeerApplicationLaunchInfo.cs
- basemetadatamappingvisitor.cs
- BindingCompleteEventArgs.cs
- Int32CAMarshaler.cs
- BadImageFormatException.cs
- WorkflowMarkupSerializationManager.cs
- SecurityException.cs
- DescriptionAttribute.cs
- WebPartsPersonalization.cs
- RegexInterpreter.cs
- IconHelper.cs
- WebBrowserEvent.cs
- SByteStorage.cs
- KeyEvent.cs
- TypeUsageBuilder.cs
- DataGridRelationshipRow.cs
- AssociationTypeEmitter.cs
- EdmPropertyAttribute.cs
- HttpResponse.cs
- PasswordTextContainer.cs
- KeyedCollection.cs
- MDIWindowDialog.cs
- LinkGrep.cs
- CompilerScope.Storage.cs
- HTTPNotFoundHandler.cs
- UInt32Converter.cs
- hwndwrapper.cs
- MemberAccessException.cs
- WsiProfilesElement.cs
- TextRangeProviderWrapper.cs
- HijriCalendar.cs
- TextEditor.cs
- GlyphsSerializer.cs
- VisualProxy.cs
- CircleHotSpot.cs
- odbcmetadatafactory.cs
- SqlDataSourceCache.cs
- RegionData.cs
- SvcMapFileSerializer.cs
- PinnedBufferMemoryStream.cs
- MILUtilities.cs
- SafeRightsManagementSessionHandle.cs
- HGlobalSafeHandle.cs
- Types.cs
- OleCmdHelper.cs
- ExpressionList.cs
- SecurityContextCookieSerializer.cs
- SqlEnums.cs
- PeerResolverSettings.cs
- CultureTableRecord.cs
- CachedTypeface.cs
- AutomationProperty.cs
- SecurityManager.cs
- DataBindingCollectionEditor.cs
- TextEffect.cs
- PropertyChangedEventManager.cs
- WindowsFormsSectionHandler.cs
- TextCharacters.cs
- ObjectManager.cs
- HttpCachePolicy.cs
- Span.cs
- Part.cs
- InputBinding.cs
- HttpChannelBindingToken.cs
- XmlBinaryReader.cs
- ResolvedKeyFrameEntry.cs
- SortDescription.cs
- HostedTransportConfigurationManager.cs
- IdnElement.cs
- EmptyControlCollection.cs
- ErrorFormatterPage.cs
- TemplateControl.cs
- TreeViewAutomationPeer.cs
- PickBranch.cs
- HttpModule.cs
- AttachedPropertyMethodSelector.cs
- UiaCoreApi.cs
- FrameworkPropertyMetadata.cs