Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpErrorTraceRecord.cs
- DateTimeOffsetAdapter.cs
- SelectionPattern.cs
- HostProtectionException.cs
- SqlDelegatedTransaction.cs
- TypeSource.cs
- SoapCodeExporter.cs
- ProgressBar.cs
- CurrencyManager.cs
- ToolStripDesignerAvailabilityAttribute.cs
- MD5Cng.cs
- OdbcConnectionHandle.cs
- FolderBrowserDialog.cs
- NameObjectCollectionBase.cs
- UserNameSecurityTokenAuthenticator.cs
- TrackingMemoryStream.cs
- ConnectionStringSettings.cs
- _SslState.cs
- LinqDataSourceInsertEventArgs.cs
- clipboard.cs
- WorkflowTransactionOptions.cs
- Paragraph.cs
- StringToken.cs
- RootContext.cs
- FileDialog.cs
- ListItemCollection.cs
- TypedTableBase.cs
- HtmlInputText.cs
- CodePrimitiveExpression.cs
- XPathMessageFilter.cs
- ContextProperty.cs
- WebPartTransformerAttribute.cs
- IWorkflowDebuggerService.cs
- HtmlLink.cs
- UrlMappingCollection.cs
- TemplateKeyConverter.cs
- WebPartTransformerAttribute.cs
- XsdBuilder.cs
- RadioButtonPopupAdapter.cs
- WebPartZoneCollection.cs
- SiteMembershipCondition.cs
- AssemblyHelper.cs
- OrderablePartitioner.cs
- StandardBindingReliableSessionElement.cs
- ReceiveReply.cs
- DirectoryRootQuery.cs
- TextSchema.cs
- BindingElement.cs
- WebServicesInteroperability.cs
- StringExpressionSet.cs
- securitycriticaldataformultiplegetandset.cs
- Listbox.cs
- assemblycache.cs
- EntityConnection.cs
- Rss20FeedFormatter.cs
- Int64AnimationBase.cs
- SourceElementsCollection.cs
- TextEncodedRawTextWriter.cs
- NullableFloatSumAggregationOperator.cs
- TypedReference.cs
- ShortcutKeysEditor.cs
- ScriptResourceAttribute.cs
- QueryContinueDragEvent.cs
- SecurityResources.cs
- GridSplitterAutomationPeer.cs
- SqlDeflator.cs
- BitmapDownload.cs
- IndependentAnimationStorage.cs
- DesignerOptionService.cs
- RenderCapability.cs
- Geometry3D.cs
- GlyphInfoList.cs
- PageThemeBuildProvider.cs
- Icon.cs
- Utils.cs
- sqlpipe.cs
- assertwrapper.cs
- InstanceCollisionException.cs
- PermissionToken.cs
- AdjustableArrowCap.cs
- HtmlGenericControl.cs
- SqlRowUpdatingEvent.cs
- AsymmetricKeyExchangeDeformatter.cs
- PropertyTabAttribute.cs
- KnownAssemblyEntry.cs
- SoapReflectionImporter.cs
- sqlstateclientmanager.cs
- PathSegmentCollection.cs
- InProcStateClientManager.cs
- ContextMenu.cs
- RegexGroup.cs
- COAUTHINFO.cs
- StrokeCollection.cs
- HttpStreamMessageEncoderFactory.cs
- Message.cs
- XmlTypeAttribute.cs
- PassportAuthenticationModule.cs
- DiffuseMaterial.cs
- Duration.cs
- XhtmlBasicValidatorAdapter.cs