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
- SpellCheck.cs
- ActivityCodeDomSerializer.cs
- OleDbRowUpdatedEvent.cs
- RuntimeVariableList.cs
- DataGridCaption.cs
- SqlClientWrapperSmiStreamChars.cs
- TraceListeners.cs
- DataControlFieldCollection.cs
- SocketManager.cs
- KeyGestureConverter.cs
- ListDictionaryInternal.cs
- BamlWriter.cs
- NotImplementedException.cs
- ExpressionCopier.cs
- ISessionStateStore.cs
- MatrixTransform3D.cs
- EntityStoreSchemaFilterEntry.cs
- MobileContainerDesigner.cs
- SqlDataSourceQuery.cs
- XmlSchemaIdentityConstraint.cs
- MutexSecurity.cs
- RewritingPass.cs
- ExitEventArgs.cs
- Page.cs
- SessionEndedEventArgs.cs
- WindowsPrincipal.cs
- MobileRedirect.cs
- PropertyGridDesigner.cs
- GridViewHeaderRowPresenter.cs
- TrustLevel.cs
- NeutralResourcesLanguageAttribute.cs
- MultilineStringConverter.cs
- Rect3D.cs
- Token.cs
- PassportAuthenticationModule.cs
- RowVisual.cs
- Expander.cs
- MultiSelector.cs
- ScriptingSectionGroup.cs
- SpellerStatusTable.cs
- ListViewInsertionMark.cs
- XmlAttributeAttribute.cs
- NavigationPropertyEmitter.cs
- CommandField.cs
- ModelMemberCollection.cs
- AppliedDeviceFiltersDialog.cs
- StylusEditingBehavior.cs
- AnnotationComponentManager.cs
- ManagementQuery.cs
- GeometryDrawing.cs
- Axis.cs
- PersonalizationProviderHelper.cs
- FileAuthorizationModule.cs
- MatrixAnimationUsingPath.cs
- PlainXmlWriter.cs
- URL.cs
- ProcessHostMapPath.cs
- InstancePersistenceContext.cs
- SchemaCollectionPreprocessor.cs
- TiffBitmapEncoder.cs
- CryptoProvider.cs
- TypeSource.cs
- EnterpriseServicesHelper.cs
- NavigateEvent.cs
- SqlDependencyUtils.cs
- XmlSchemaInclude.cs
- validation.cs
- StickyNoteContentControl.cs
- PeerApplicationLaunchInfo.cs
- DLinqTableProvider.cs
- DocumentGridContextMenu.cs
- CqlLexer.cs
- SerialErrors.cs
- SystemUnicastIPAddressInformation.cs
- InfoCardClaimCollection.cs
- SqlBulkCopyColumnMappingCollection.cs
- ActivityStateRecord.cs
- WebPartTracker.cs
- CookielessHelper.cs
- CatalogPartCollection.cs
- DocumentCollection.cs
- BuilderPropertyEntry.cs
- DrawingVisualDrawingContext.cs
- BufferManager.cs
- XpsDocumentEvent.cs
- LongTypeConverter.cs
- FlowPanelDesigner.cs
- TokenDescriptor.cs
- PropertyGrid.cs
- SemanticValue.cs
- ScrollItemPattern.cs
- Membership.cs
- UIServiceHelper.cs
- Geometry3D.cs
- SecurityPolicySection.cs
- MappingSource.cs
- BinaryReader.cs
- PartialCachingAttribute.cs
- RealizationDrawingContextWalker.cs
- DataGridViewAdvancedBorderStyle.cs