Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Documents / LinkTarget.cs / 1 / LinkTarget.cs
//---------------------------------------------------------------------------- //// Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // // Description: // Implements the LinkTargetCollection as holder for a collection // of LinkTarget // // History: // 02/01/2005 - Ming Liu(MingLiu) - Created. // // //--------------------------------------------------------------------------- namespace System.Windows.Documents { using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; using System.Diagnostics; using System.Windows.Threading; using System.Windows.Markup; //===================================================================== ////// LinkTarget is the class that keep name that a named element exist in document /// public sealed class LinkTarget { ////// The element name /// public string Name { get { return _name; } set { _name = value; } } private string _name; } //===================================================================== ////// LinkTargetCollection is an ordered collection of LinkTarget /// It has to implement plain IList because the parser doesn't support /// generics IList. /// public sealed class LinkTargetCollection : CollectionBase { //-------------------------------------------------------------------- // // Public Methods // //--------------------------------------------------------------------- ////// /// public LinkTarget this[int index] { get { return (LinkTarget)((IList)this)[index]; } set { ((IList)this)[index] = value; } } ////// /// public int Add(LinkTarget value) { return ((IList)this).Add((object)value); } ////// /// public void Remove(LinkTarget value) { ((IList)this).Remove((object) value); } ////// /// public bool Contains(LinkTarget value) { return ((IList)this).Contains((object)value); } ////// /// public void CopyTo(LinkTarget[] array, int index) { ((ICollection)this).CopyTo(array, index); } ////// /// public int IndexOf(LinkTarget value) { return ((IList)this).IndexOf((object)value); } ////// /// public void Insert(int index, LinkTarget value) { ((IList)this).Insert(index, (object)value); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- //// Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // // Description: // Implements the LinkTargetCollection as holder for a collection // of LinkTarget // // History: // 02/01/2005 - Ming Liu(MingLiu) - Created. // // //--------------------------------------------------------------------------- namespace System.Windows.Documents { using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; using System.Diagnostics; using System.Windows.Threading; using System.Windows.Markup; //===================================================================== ////// LinkTarget is the class that keep name that a named element exist in document /// public sealed class LinkTarget { ////// The element name /// public string Name { get { return _name; } set { _name = value; } } private string _name; } //===================================================================== ////// LinkTargetCollection is an ordered collection of LinkTarget /// It has to implement plain IList because the parser doesn't support /// generics IList. /// public sealed class LinkTargetCollection : CollectionBase { //-------------------------------------------------------------------- // // Public Methods // //--------------------------------------------------------------------- ////// /// public LinkTarget this[int index] { get { return (LinkTarget)((IList)this)[index]; } set { ((IList)this)[index] = value; } } ////// /// public int Add(LinkTarget value) { return ((IList)this).Add((object)value); } ////// /// public void Remove(LinkTarget value) { ((IList)this).Remove((object) value); } ////// /// public bool Contains(LinkTarget value) { return ((IList)this).Contains((object)value); } ////// /// public void CopyTo(LinkTarget[] array, int index) { ((ICollection)this).CopyTo(array, index); } ////// /// public int IndexOf(LinkTarget value) { return ((IList)this).IndexOf((object)value); } ////// /// public void Insert(int index, LinkTarget value) { ((IList)this).Insert(index, (object)value); } } } // 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
- TypedReference.cs
- AutomationIdentifierGuids.cs
- RoleService.cs
- TreeBuilderXamlTranslator.cs
- Site.cs
- WinEventHandler.cs
- entitydatasourceentitysetnameconverter.cs
- InlineObject.cs
- DataViewManager.cs
- SelectionListDesigner.cs
- StringFreezingAttribute.cs
- PropagatorResult.cs
- CodeAttributeArgument.cs
- ReadContentAsBinaryHelper.cs
- TextBoxBase.cs
- XPathScanner.cs
- mongolianshape.cs
- ScalarRestriction.cs
- PropertyInformationCollection.cs
- WebScriptMetadataMessageEncoderFactory.cs
- HtmlSelect.cs
- GeneralTransformCollection.cs
- InkCanvasSelectionAdorner.cs
- SQLCharsStorage.cs
- StringTraceRecord.cs
- LineGeometry.cs
- DataGridToolTip.cs
- AuthenticationModuleElementCollection.cs
- TrackingMemoryStreamFactory.cs
- GeneratedCodeAttribute.cs
- ToolStripProgressBar.cs
- SessionEndedEventArgs.cs
- CLRBindingWorker.cs
- TimeZoneInfo.cs
- VectorAnimationBase.cs
- AnnotationComponentManager.cs
- SetStateEventArgs.cs
- SystemInfo.cs
- MetadataSerializer.cs
- WebResourceAttribute.cs
- DetailsViewInsertEventArgs.cs
- InputLangChangeEvent.cs
- BindingValueChangedEventArgs.cs
- HttpAsyncResult.cs
- AdjustableArrowCap.cs
- Int64AnimationBase.cs
- ListViewGroupItemCollection.cs
- FixedSOMPage.cs
- SqlBooleanMismatchVisitor.cs
- CharUnicodeInfo.cs
- BindingExpressionUncommonField.cs
- DispatcherProcessingDisabled.cs
- MultipleViewPattern.cs
- XmlObjectSerializerWriteContext.cs
- StreamMarshaler.cs
- ParserContext.cs
- ItemsControlAutomationPeer.cs
- ElementHostPropertyMap.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ControllableStoryboardAction.cs
- ConstraintConverter.cs
- _LocalDataStore.cs
- Material.cs
- ProcessHostServerConfig.cs
- XmlAttributeOverrides.cs
- HashAlgorithm.cs
- TextCollapsingProperties.cs
- NotifyCollectionChangedEventArgs.cs
- safesecurityhelperavalon.cs
- XMLSyntaxException.cs
- SqlDataAdapter.cs
- InputLanguageCollection.cs
- BindableTemplateBuilder.cs
- WindowsListViewGroupSubsetLink.cs
- TimeSpanStorage.cs
- PrintPreviewControl.cs
- TemplatePropertyEntry.cs
- ActivityExecutorSurrogate.cs
- LayoutDump.cs
- BuildManager.cs
- XomlCompiler.cs
- StylusPointPropertyId.cs
- DesignerTransactionCloseEvent.cs
- SQLDecimal.cs
- MobileTextWriter.cs
- RotateTransform3D.cs
- CodeTypeDelegate.cs
- KeySplineConverter.cs
- DataGridPageChangedEventArgs.cs
- QilChoice.cs
- ItemAutomationPeer.cs
- TextProperties.cs
- SkipQueryOptionExpression.cs
- VsPropertyGrid.cs
- ConfigXmlAttribute.cs
- DependencyProperty.cs
- InvalidComObjectException.cs
- XmlTextWriter.cs
- EntityTypeEmitter.cs
- FontUnitConverter.cs