Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / ListItemCollection.cs / 1305600 / ListItemCollection.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // Description: Collection of ListItem elements // //--------------------------------------------------------------------------- namespace System.Windows.Documents { using MS.Internal; // Invariant ////// Collection of ListItem elements /// public class ListItemCollection : TextElementCollection{ //------------------------------------------------------------------- // // Constructors // //------------------------------------------------------------------- #region Constructors // This kind of collection is suposed to be created by owning List elements only. // Note that when a SiblingListItems collection is created for a ListItem, the owner of collection is that member ListItem object. // Flag isOwnerParent indicates whether owner is a parent or a member of the collection. internal ListItemCollection(DependencyObject owner, bool isOwnerParent) : base(owner, isOwnerParent) { } #endregion Constructors //-------------------------------------------------------------------- // // Public Properties // //------------------------------------------------------------------- #region Public Properties /// /// Returns a first ListItem of this collection /// public ListItem FirstListItem { get { return this.FirstChild; } } ////// Returns a last ListItem of this collection /// public ListItem LastListItem { get { return this.LastChild; } } #endregion Public Properties } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // Description: Collection of ListItem elements // //--------------------------------------------------------------------------- namespace System.Windows.Documents { using MS.Internal; // Invariant ////// Collection of ListItem elements /// public class ListItemCollection : TextElementCollection{ //------------------------------------------------------------------- // // Constructors // //------------------------------------------------------------------- #region Constructors // This kind of collection is suposed to be created by owning List elements only. // Note that when a SiblingListItems collection is created for a ListItem, the owner of collection is that member ListItem object. // Flag isOwnerParent indicates whether owner is a parent or a member of the collection. internal ListItemCollection(DependencyObject owner, bool isOwnerParent) : base(owner, isOwnerParent) { } #endregion Constructors //-------------------------------------------------------------------- // // Public Properties // //------------------------------------------------------------------- #region Public Properties /// /// Returns a first ListItem of this collection /// public ListItem FirstListItem { get { return this.FirstChild; } } ////// Returns a last ListItem of this collection /// public ListItem LastListItem { get { return this.LastChild; } } #endregion Public Properties } } // 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
- StdValidatorsAndConverters.cs
- XXXOnTypeBuilderInstantiation.cs
- ProcessModuleCollection.cs
- DomainUpDown.cs
- xmlformatgeneratorstatics.cs
- AlternationConverter.cs
- MediaPlayerState.cs
- SimpleTypeResolver.cs
- EmbeddedMailObject.cs
- MultiAsyncResult.cs
- RightNameExpirationInfoPair.cs
- Enum.cs
- StandardCommands.cs
- XamlRtfConverter.cs
- TypeDescriptionProviderAttribute.cs
- Speller.cs
- TrimSurroundingWhitespaceAttribute.cs
- GACIdentityPermission.cs
- DesignOnlyAttribute.cs
- HwndSubclass.cs
- InkSerializer.cs
- MetadataUtil.cs
- DataBinder.cs
- IApplicationTrustManager.cs
- SymDocumentType.cs
- CryptoKeySecurity.cs
- DataKeyArray.cs
- PolyBezierSegmentFigureLogic.cs
- QilTypeChecker.cs
- CompoundFileDeflateTransform.cs
- HasCopySemanticsAttribute.cs
- CommentEmitter.cs
- LocalizableAttribute.cs
- TextBox.cs
- FontUnitConverter.cs
- DbConnectionPool.cs
- ConfigurationManagerHelper.cs
- NotifyCollectionChangedEventArgs.cs
- ErrorTableItemStyle.cs
- CustomErrorsSection.cs
- DeclarativeCatalogPart.cs
- Win32SafeHandles.cs
- ServiceProviders.cs
- XmlIncludeAttribute.cs
- EventSourceCreationData.cs
- RegexMatchCollection.cs
- WebFormsRootDesigner.cs
- ButtonDesigner.cs
- WebPartCollection.cs
- BuildProviderInstallComponent.cs
- XmlWrappingReader.cs
- HttpDictionary.cs
- FilterableAttribute.cs
- DataSourceCacheDurationConverter.cs
- UnsafeNativeMethods.cs
- CompositeFontParser.cs
- EmbeddedMailObjectsCollection.cs
- MsdtcClusterUtils.cs
- AudioException.cs
- StagingAreaInputItem.cs
- UnaryNode.cs
- DisposableCollectionWrapper.cs
- SymmetricCryptoHandle.cs
- TripleDES.cs
- WorkflowInstance.cs
- RecommendedAsConfigurableAttribute.cs
- XmlNamedNodeMap.cs
- DynamicValueConverter.cs
- NotSupportedException.cs
- QilIterator.cs
- ToolStripPanelRenderEventArgs.cs
- BookmarkNameHelper.cs
- BufferedReadStream.cs
- PartManifestEntry.cs
- Matrix.cs
- PersistenceException.cs
- InternalMappingException.cs
- Automation.cs
- MetabaseReader.cs
- PrintDialog.cs
- EntityViewGenerationAttribute.cs
- PrintDialog.cs
- LineGeometry.cs
- LongTypeConverter.cs
- MethodImplAttribute.cs
- _ConnectStream.cs
- CryptoProvider.cs
- IndexedString.cs
- sqlpipe.cs
- xml.cs
- WebDescriptionAttribute.cs
- SqlConnectionString.cs
- VoiceObjectToken.cs
- MetadataCacheItem.cs
- X509SecurityTokenParameters.cs
- EntityPropertyMappingAttribute.cs
- AlignmentXValidation.cs
- SchemaTableOptionalColumn.cs
- QueryOpeningEnumerator.cs
- CodeAttributeDeclaration.cs