Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// 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(); } } } } // 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
- ImageMap.cs
- CodeComment.cs
- BitmapDownload.cs
- WebHttpBindingElement.cs
- BeginEvent.cs
- ViewService.cs
- OpenTypeLayout.cs
- DbTransaction.cs
- DateTimeOffsetStorage.cs
- UIInitializationException.cs
- SoapFormatExtensions.cs
- Int64AnimationBase.cs
- WhitespaceRule.cs
- WebServiceClientProxyGenerator.cs
- ObjectManager.cs
- IisTraceListener.cs
- QueryCacheManager.cs
- ContextActivityUtils.cs
- Int64KeyFrameCollection.cs
- BindingMemberInfo.cs
- DPAPIProtectedConfigurationProvider.cs
- TextDecorationUnitValidation.cs
- DrawingImage.cs
- HandledEventArgs.cs
- RuntimeConfigLKG.cs
- ImageMap.cs
- BackStopAuthenticationModule.cs
- ReflectionServiceProvider.cs
- CompressStream.cs
- _Events.cs
- ExpressionBuilderContext.cs
- OpCodes.cs
- CLRBindingWorker.cs
- TimelineGroup.cs
- HtmlContainerControl.cs
- HostingEnvironmentException.cs
- JavaScriptSerializer.cs
- AttachedAnnotationChangedEventArgs.cs
- QueryableDataSourceView.cs
- IisTraceWebEventProvider.cs
- BufferModesCollection.cs
- DataGridViewCheckBoxColumn.cs
- VectorCollectionValueSerializer.cs
- XPathAncestorQuery.cs
- PnrpPeerResolverElement.cs
- UIntPtr.cs
- XmlHierarchicalDataSourceView.cs
- GroupBoxDesigner.cs
- FactoryMaker.cs
- RSAProtectedConfigurationProvider.cs
- AliasedSlot.cs
- PageRequestManager.cs
- SymbolEqualComparer.cs
- DiscoveryMessageSequenceGenerator.cs
- FileVersionInfo.cs
- XmlSchemaImport.cs
- URIFormatException.cs
- RouteTable.cs
- EventRecord.cs
- CustomAttribute.cs
- CertificateManager.cs
- FixedSOMPageConstructor.cs
- EventToken.cs
- RuntimeHandles.cs
- CustomWebEventKey.cs
- Visual3D.cs
- ListDesigner.cs
- StringValidatorAttribute.cs
- CustomExpressionEventArgs.cs
- ConfigurationStrings.cs
- CodeExporter.cs
- ApplyTemplatesAction.cs
- TypeDefinition.cs
- WorkflowInstanceProvider.cs
- ExpressionsCollectionConverter.cs
- WmlCalendarAdapter.cs
- Util.cs
- QueryStringParameter.cs
- AutomationProperty.cs
- ErrorCodes.cs
- ComponentEditorPage.cs
- WindowsListViewGroupSubsetLink.cs
- XamlInt32CollectionSerializer.cs
- BufferModesCollection.cs
- CacheRequest.cs
- SecureUICommand.cs
- ContextMenu.cs
- SessionStateModule.cs
- UTF32Encoding.cs
- CqlErrorHelper.cs
- AssemblyCollection.cs
- InkCanvasAutomationPeer.cs
- ThreadNeutralSemaphore.cs
- SpStreamWrapper.cs
- FixedSOMPage.cs
- LongSumAggregationOperator.cs
- SQLBytesStorage.cs
- WebPartExportVerb.cs
- GridViewRow.cs
- Rotation3DKeyFrameCollection.cs