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
- XamlBuildTaskServices.cs
- ValidationError.cs
- RootBrowserWindowProxy.cs
- Line.cs
- RoutedEventArgs.cs
- QuadraticBezierSegment.cs
- X509Certificate.cs
- FastEncoderWindow.cs
- SamlAuthorizationDecisionStatement.cs
- EventItfInfo.cs
- SafeProcessHandle.cs
- DataTableMapping.cs
- handlecollector.cs
- CommandExpr.cs
- FormViewPagerRow.cs
- Point4DValueSerializer.cs
- DictionaryEntry.cs
- SqlInternalConnectionTds.cs
- TextReader.cs
- QuaternionKeyFrameCollection.cs
- PropertyCollection.cs
- DataViewListener.cs
- CounterSetInstanceCounterDataSet.cs
- CheckedListBox.cs
- WasAdminWrapper.cs
- AnimationException.cs
- LinearGradientBrush.cs
- XmlHierarchicalDataSourceView.cs
- TransformGroup.cs
- ResourcePool.cs
- UnsafeMethods.cs
- RoutedEventConverter.cs
- SymbolResolver.cs
- DllNotFoundException.cs
- GridLength.cs
- ApplicationCommands.cs
- ActivityWithResultValueSerializer.cs
- RequestFactory.cs
- SerializationHelper.cs
- SecuritySessionSecurityTokenProvider.cs
- ServerProtocol.cs
- OleDbPermission.cs
- OpacityConverter.cs
- RequestQueryParser.cs
- CompositeTypefaceMetrics.cs
- DependencySource.cs
- EventRoute.cs
- LogicalExpressionTypeConverter.cs
- SqlBulkCopyColumnMapping.cs
- CodeTypeConstructor.cs
- NativeRightsManagementAPIsStructures.cs
- ToolStripSystemRenderer.cs
- WebPartCancelEventArgs.cs
- FileSecurity.cs
- LiteralControl.cs
- DoWorkEventArgs.cs
- HttpListenerRequest.cs
- LeaseManager.cs
- OrderedDictionaryStateHelper.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- EditingCoordinator.cs
- PrintDialog.cs
- COM2FontConverter.cs
- PriorityQueue.cs
- MDIControlStrip.cs
- DbConnectionFactory.cs
- ITextView.cs
- MemberHolder.cs
- ClientConfigPaths.cs
- CodeCompiler.cs
- SqlClientFactory.cs
- securitycriticaldataClass.cs
- Thumb.cs
- GradientBrush.cs
- TableCellsCollectionEditor.cs
- JsonReaderDelegator.cs
- DispatcherTimer.cs
- BinaryFormatterWriter.cs
- DbProviderFactory.cs
- CodeTypeReference.cs
- SspiSafeHandles.cs
- SplitterPanel.cs
- MenuItemCollection.cs
- SqlCommand.cs
- TriggerAction.cs
- CollectionViewGroupInternal.cs
- xml.cs
- HandlerMappingMemo.cs
- RectAnimationClockResource.cs
- AutoGeneratedFieldProperties.cs
- DynamicILGenerator.cs
- ContainerControl.cs
- ProxyManager.cs
- PropertyInfoSet.cs
- GregorianCalendar.cs
- XPathSingletonIterator.cs
- PrivilegedConfigurationManager.cs
- DeviceContexts.cs
- DrawingAttributesDefaultValueFactory.cs
- MemoryMappedViewAccessor.cs