Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / TreeNodeStyleCollection.cs / 1305376 / 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; 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignerMetadata.cs
- DecoratedNameAttribute.cs
- FormViewRow.cs
- CustomAssemblyResolver.cs
- FileAuthorizationModule.cs
- SQLDoubleStorage.cs
- XhtmlBasicCommandAdapter.cs
- Mutex.cs
- unsafeIndexingFilterStream.cs
- Solver.cs
- MemoryResponseElement.cs
- MaskedTextBoxDesigner.cs
- Range.cs
- PageParser.cs
- CodeDomDecompiler.cs
- ConnectionManagementSection.cs
- SymbolEqualComparer.cs
- SchemaTypeEmitter.cs
- GridViewColumn.cs
- IpcClientManager.cs
- BinaryFormatter.cs
- VirtualDirectoryMappingCollection.cs
- Random.cs
- CompleteWizardStep.cs
- RuleRefElement.cs
- ValueUnavailableException.cs
- TextProperties.cs
- XmlDesigner.cs
- WebConfigurationHostFileChange.cs
- ToolstripProfessionalRenderer.cs
- SafeCryptoHandles.cs
- SmtpReplyReader.cs
- ParameterSubsegment.cs
- DrawingGroup.cs
- KeyInterop.cs
- DateTimeConverter2.cs
- SetterBase.cs
- XmlAggregates.cs
- XhtmlBasicTextBoxAdapter.cs
- ZipIOExtraField.cs
- SourceChangedEventArgs.cs
- uribuilder.cs
- TextDecoration.cs
- SqlDataSourceSelectingEventArgs.cs
- ContentIterators.cs
- MetadataItem_Static.cs
- AngleUtil.cs
- DecimalKeyFrameCollection.cs
- DbParameterHelper.cs
- DataGridViewRowsAddedEventArgs.cs
- BindingContext.cs
- SqlStream.cs
- FormViewInsertEventArgs.cs
- ColumnMap.cs
- JournalEntryListConverter.cs
- IntellisenseTextBox.cs
- ContainerActivationHelper.cs
- Crc32.cs
- HotCommands.cs
- XmlWriterTraceListener.cs
- UIPropertyMetadata.cs
- DictionaryCustomTypeDescriptor.cs
- EtwTrace.cs
- MultiDataTrigger.cs
- Partitioner.cs
- ResourceReferenceExpression.cs
- NamespaceEmitter.cs
- TreeIterator.cs
- SortDescriptionCollection.cs
- FixUp.cs
- _SslSessionsCache.cs
- ListViewItemEventArgs.cs
- DrawToolTipEventArgs.cs
- GifBitmapDecoder.cs
- Column.cs
- ConfigurationPermission.cs
- SchemaCollectionCompiler.cs
- EventWaitHandleSecurity.cs
- ScriptResourceAttribute.cs
- RepeatBehaviorConverter.cs
- SerializableReadOnlyDictionary.cs
- MsmqInputSessionChannel.cs
- Error.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- FileUpload.cs
- BatchParser.cs
- BindingCompleteEventArgs.cs
- OleDbWrapper.cs
- XamlPoint3DCollectionSerializer.cs
- _SslState.cs
- TextContainer.cs
- PageParserFilter.cs
- XmlSchemaAll.cs
- DiscoveryEndpoint.cs
- AdornerLayer.cs
- _SSPISessionCache.cs
- URLMembershipCondition.cs
- SrgsText.cs
- SynchronizedDispatch.cs
- OrderablePartitioner.cs