Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / TreeNodeStyleCollection.cs / 1 / TreeNodeStyleCollection.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)] public sealed class TreeNodeStyleCollection : StateManagedCollection { private static readonly Type[] knownTypes = new Type[] { typeof(TreeNodeStyle) }; internal TreeNodeStyleCollection() { } protected override void OnInsert(int index, object value) { base.OnInsert(index, value); if (value is TreeNodeStyle) { TreeNodeStyle style = (TreeNodeStyle)value; style.Font.Underline = style.Font.Underline; } else { throw new ArgumentException(SR.GetString(SR.TreeNodeStyleCollection_InvalidArgument), "value"); } } public TreeNodeStyle this[int i] { get { return (TreeNodeStyle)((IList)this)[i]; } set { ((IList)this)[i] = value; } } public int Add(TreeNodeStyle style) { return ((IList)this).Add(style); } public bool Contains(TreeNodeStyle style) { return ((IList)this).Contains(style); } public void CopyTo(TreeNodeStyle[] styleArray, int index) { base.CopyTo(styleArray, index); } public int IndexOf(TreeNodeStyle style) { return ((IList)this).IndexOf(style); } public void Insert(int index, TreeNodeStyle style) { ((IList)this).Insert(index, style); } protected override object CreateKnownType(int index) { return new TreeNodeStyle(); } protected override Type[] GetKnownTypes() { return knownTypes; } public void Remove(TreeNodeStyle style) { ((IList)this).Remove(style); } public void RemoveAt(int index) { ((IList)this).RemoveAt(index); } protected override void SetDirtyObject(object o) { if (o is TreeNodeStyle) { ((TreeNodeStyle)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
- TextBox.cs
- SqlClientPermission.cs
- backend.cs
- RegistryKey.cs
- MergeFilterQuery.cs
- DecimalStorage.cs
- SpellCheck.cs
- XmlWrappingWriter.cs
- DateTime.cs
- QueryStringParameter.cs
- EndpointAddressProcessor.cs
- rsa.cs
- ReferenceSchema.cs
- HttpClientCertificate.cs
- MemberRestriction.cs
- RootContext.cs
- BuildDependencySet.cs
- DecoderExceptionFallback.cs
- SyndicationFeedFormatter.cs
- LogEntryHeaderDeserializer.cs
- SecurityHeaderLayout.cs
- ListViewItem.cs
- DetailsViewModeEventArgs.cs
- BrowserInteropHelper.cs
- RectValueSerializer.cs
- SamlConditions.cs
- SendSecurityHeader.cs
- IdentitySection.cs
- XPathEmptyIterator.cs
- ToolBarButton.cs
- DrawToolTipEventArgs.cs
- StateMachine.cs
- PrintDocument.cs
- ConstraintEnumerator.cs
- Scene3D.cs
- ObjectQueryProvider.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- SqlDataSourceConfigureFilterForm.cs
- Component.cs
- MetadataCache.cs
- ToolStripPanelSelectionGlyph.cs
- NumberFunctions.cs
- FocusManager.cs
- ServiceElement.cs
- IApplicationTrustManager.cs
- ConnectionOrientedTransportBindingElement.cs
- LinqDataSource.cs
- FlatButtonAppearance.cs
- StaticSiteMapProvider.cs
- CodeMemberProperty.cs
- TransformerConfigurationWizardBase.cs
- HttpVersion.cs
- Exceptions.cs
- BaseDataBoundControl.cs
- RelationshipConstraintValidator.cs
- hwndwrapper.cs
- RightsManagementInformation.cs
- ScrollPattern.cs
- ExpressionBuilder.cs
- FacetDescription.cs
- DataGridItemCollection.cs
- GacUtil.cs
- CookieHandler.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- TextBoxView.cs
- DesignConnection.cs
- ModelTreeEnumerator.cs
- ProviderUtil.cs
- Update.cs
- input.cs
- DirtyTextRange.cs
- MaskedTextProvider.cs
- AnnotationObservableCollection.cs
- ListViewItem.cs
- OutputCacheModule.cs
- Image.cs
- WSHttpBindingBaseElement.cs
- ToolStripLocationCancelEventArgs.cs
- ValidationErrorEventArgs.cs
- ColumnMap.cs
- MouseButtonEventArgs.cs
- DataGridViewCellValueEventArgs.cs
- XamlWriter.cs
- SourceExpressionException.cs
- AncestorChangedEventArgs.cs
- AuthenticationConfig.cs
- StringStorage.cs
- PositiveTimeSpanValidatorAttribute.cs
- ObjectItemCollection.cs
- Sequence.cs
- webclient.cs
- AcceleratedTokenProvider.cs
- StateDesignerConnector.cs
- ListViewInsertionMark.cs
- BooleanAnimationBase.cs
- RangeValuePatternIdentifiers.cs
- PingReply.cs
- DefaultValueMapping.cs
- PathFigure.cs
- DeferredElementTreeState.cs