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
- WebException.cs
- DateTimeConverter2.cs
- UnitySerializationHolder.cs
- XmlSerializer.cs
- DataListCommandEventArgs.cs
- ReflectionHelper.cs
- XhtmlBasicLinkAdapter.cs
- MarshalDirectiveException.cs
- SettingsPropertyIsReadOnlyException.cs
- SqlResolver.cs
- ClassHandlersStore.cs
- SystemIcons.cs
- Imaging.cs
- ElementUtil.cs
- Literal.cs
- MiniCustomAttributeInfo.cs
- ObjectDataSourceView.cs
- EdmItemCollection.OcAssemblyCache.cs
- ProfilePropertySettingsCollection.cs
- HttpCookieCollection.cs
- OdbcConnectionStringbuilder.cs
- Int16AnimationUsingKeyFrames.cs
- IgnoreFileBuildProvider.cs
- SizeAnimationClockResource.cs
- IntegerValidator.cs
- AccessDataSourceWizardForm.cs
- WebPartCancelEventArgs.cs
- MediaElementAutomationPeer.cs
- InputMethod.cs
- X509Certificate2Collection.cs
- DtdParser.cs
- RoutedEvent.cs
- NumberSubstitution.cs
- BasicKeyConstraint.cs
- FormatException.cs
- RadioButtonAutomationPeer.cs
- PlainXmlSerializer.cs
- LocatorBase.cs
- TdsParameterSetter.cs
- XsltConvert.cs
- XmlSchemaFacet.cs
- ContentElement.cs
- EntityDataSourceWrapperCollection.cs
- DataObjectFieldAttribute.cs
- MenuItemCollectionEditor.cs
- DataConnectionHelper.cs
- NameValuePermission.cs
- SqlSupersetValidator.cs
- DescendantQuery.cs
- SequenceRangeCollection.cs
- TreeView.cs
- SqlDataReaderSmi.cs
- ChainOfResponsibility.cs
- DataGridViewSortCompareEventArgs.cs
- TdsParserHelperClasses.cs
- IHttpResponseInternal.cs
- FormParameter.cs
- messageonlyhwndwrapper.cs
- LinearQuaternionKeyFrame.cs
- CookielessHelper.cs
- SelectionRange.cs
- NumericUpDown.cs
- _NestedMultipleAsyncResult.cs
- UInt32Storage.cs
- PersonalizationStateInfoCollection.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- SingleKeyFrameCollection.cs
- ExtendedProperty.cs
- KeyGesture.cs
- SqlBulkCopyColumnMappingCollection.cs
- ButtonDesigner.cs
- BufferModesCollection.cs
- ExpressionConverter.cs
- CellRelation.cs
- InkCanvasFeedbackAdorner.cs
- TimeSpanParse.cs
- DrawToolTipEventArgs.cs
- HttpCacheVaryByContentEncodings.cs
- CompilationRelaxations.cs
- DataGrid.cs
- UrlRoutingHandler.cs
- Char.cs
- StringBlob.cs
- DataBoundControl.cs
- CapiHashAlgorithm.cs
- DynamicValidator.cs
- CompilationSection.cs
- SafeNativeMethodsCLR.cs
- InfoCardSymmetricAlgorithm.cs
- CanonicalFontFamilyReference.cs
- RewritingPass.cs
- PasswordRecoveryDesigner.cs
- EntityDataSourceUtil.cs
- MemberRelationshipService.cs
- TextRangeAdaptor.cs
- ContentPathSegment.cs
- SHA1.cs
- ZipIOLocalFileHeader.cs
- OptimalBreakSession.cs
- VisualStyleInformation.cs