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
- SchemaTypeEmitter.cs
- GridItem.cs
- UrlMapping.cs
- documentsequencetextview.cs
- XPathDocumentNavigator.cs
- OdbcReferenceCollection.cs
- FamilyCollection.cs
- WindowsPen.cs
- ViewStateException.cs
- _Rfc2616CacheValidators.cs
- DbModificationClause.cs
- Line.cs
- CodeTypeMemberCollection.cs
- Emitter.cs
- TabItem.cs
- HttpCacheParams.cs
- MarshalByValueComponent.cs
- IssuanceLicense.cs
- QilXmlWriter.cs
- OdbcEnvironment.cs
- MapPathBasedVirtualPathProvider.cs
- EntitySqlQueryCacheKey.cs
- TemplatedAdorner.cs
- DataColumnPropertyDescriptor.cs
- BasicCellRelation.cs
- SessionStateModule.cs
- QueryExpr.cs
- ParameterElement.cs
- UpdateCompiler.cs
- IPAddress.cs
- CallbackValidator.cs
- ErrorActivity.cs
- SkipQueryOptionExpression.cs
- ModelTypeConverter.cs
- RectangleF.cs
- SessionEndingCancelEventArgs.cs
- ParallelEnumerable.cs
- lengthconverter.cs
- SRef.cs
- GetUserPreferenceRequest.cs
- HelloMessageCD1.cs
- NominalTypeEliminator.cs
- MultilineStringConverter.cs
- AvtEvent.cs
- MasterPageParser.cs
- ZipIOExtraFieldZip64Element.cs
- WorkflowQueue.cs
- EmptyEnumerable.cs
- QueryOutputWriterV1.cs
- sqlnorm.cs
- Argument.cs
- XmlSchemaInclude.cs
- StaticFileHandler.cs
- IIS7WorkerRequest.cs
- ToolTip.cs
- DragCompletedEventArgs.cs
- ScriptControlDescriptor.cs
- Color.cs
- XmlResolver.cs
- TaiwanLunisolarCalendar.cs
- SQLGuidStorage.cs
- DataBindEngine.cs
- LateBoundChannelParameterCollection.cs
- Transform3D.cs
- Membership.cs
- Timeline.cs
- ProbeMatchesApril2005.cs
- QuaternionRotation3D.cs
- RelationshipNavigation.cs
- AutoGeneratedField.cs
- RangeValidator.cs
- TextPenaltyModule.cs
- HttpTransportSecurityElement.cs
- XmlAutoDetectWriter.cs
- MembershipValidatePasswordEventArgs.cs
- OutputScope.cs
- CannotUnloadAppDomainException.cs
- UserNameSecurityToken.cs
- FromReply.cs
- XamlSerializerUtil.cs
- EnumBuilder.cs
- MultiAsyncResult.cs
- Model3D.cs
- ExceptionList.cs
- SqlStream.cs
- ObjectContext.cs
- ServiceHostFactory.cs
- ContentFileHelper.cs
- BinaryUtilClasses.cs
- Int32Converter.cs
- GroupBox.cs
- PingReply.cs
- EmptyStringExpandableObjectConverter.cs
- TdsRecordBufferSetter.cs
- SmtpDigestAuthenticationModule.cs
- XmlMembersMapping.cs
- ReachPageContentCollectionSerializer.cs
- SimpleBitVector32.cs
- TagPrefixInfo.cs
- DataReaderContainer.cs