Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / LinkTarget.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IconBitmapDecoder.cs
- DataServiceHost.cs
- SqlNotificationRequest.cs
- Compiler.cs
- ReadOnlyPropertyMetadata.cs
- storepermissionattribute.cs
- AttachmentCollection.cs
- HttpModule.cs
- MenuTracker.cs
- sqlinternaltransaction.cs
- XmlNavigatorFilter.cs
- EncoderParameters.cs
- KeyFrames.cs
- XmlResolver.cs
- ImageField.cs
- XPathScanner.cs
- PropertyGeneratedEventArgs.cs
- BehaviorService.cs
- Underline.cs
- UserMapPath.cs
- OleDbParameterCollection.cs
- CardSpacePolicyElement.cs
- TcpAppDomainProtocolHandler.cs
- _TimerThread.cs
- ConfigurationManagerHelperFactory.cs
- CompiledQueryCacheEntry.cs
- Ops.cs
- WsdlInspector.cs
- PointLight.cs
- TreeViewBindingsEditorForm.cs
- DebugControllerThread.cs
- ResourceWriter.cs
- PerformanceCounterNameAttribute.cs
- HttpValueCollection.cs
- HostExecutionContextManager.cs
- EntityDataSourceWizardForm.cs
- EntitySet.cs
- Point3DIndependentAnimationStorage.cs
- SurrogateEncoder.cs
- LiteralLink.cs
- Label.cs
- ExpressionList.cs
- HostingEnvironment.cs
- LocatorPart.cs
- ThousandthOfEmRealPoints.cs
- VisualStyleTypesAndProperties.cs
- ListViewItem.cs
- SizeChangedEventArgs.cs
- XmlQueryStaticData.cs
- ConfigurationStrings.cs
- StrokeDescriptor.cs
- DispatcherExceptionEventArgs.cs
- WindowsListViewSubItem.cs
- GridViewRowCollection.cs
- RawMouseInputReport.cs
- DictionaryBase.cs
- IconEditor.cs
- AsyncResult.cs
- SystemEvents.cs
- ImportContext.cs
- TypographyProperties.cs
- FamilyTypeface.cs
- DllNotFoundException.cs
- TypeFieldSchema.cs
- VisualBrush.cs
- ProgressBarAutomationPeer.cs
- WsatExtendedInformation.cs
- XmlSchemaAnnotation.cs
- ModuleBuilderData.cs
- AsyncResult.cs
- VirtualPathData.cs
- SystemResourceHost.cs
- MetadataLocation.cs
- WebEventTraceProvider.cs
- EntityDataSourceContainerNameConverter.cs
- Avt.cs
- securitymgrsite.cs
- SafeLibraryHandle.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- ErrorHandler.cs
- ChildrenQuery.cs
- WindowsNonControl.cs
- PointCollectionConverter.cs
- CompatibleComparer.cs
- RuntimeVariableList.cs
- PaintValueEventArgs.cs
- GetImportedCardRequest.cs
- Cursor.cs
- DynamicMethod.cs
- TypedTableBaseExtensions.cs
- SyndicationDeserializer.cs
- OrderToken.cs
- HtmlInputText.cs
- VirtualPath.cs
- RuntimeHelpers.cs
- StringHandle.cs
- AccessKeyManager.cs
- MultiTargetingUtil.cs
- DbDataAdapter.cs
- TextTreeRootNode.cs