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
- StrongTypingException.cs
- ImageKeyConverter.cs
- DesignerPerfEventProvider.cs
- FileAuthorizationModule.cs
- LogReservationCollection.cs
- ReadOnlyDataSource.cs
- Publisher.cs
- XmlSchemaSimpleType.cs
- DnsEndpointIdentity.cs
- CharacterString.cs
- XmlElementCollection.cs
- SplashScreen.cs
- BamlResourceSerializer.cs
- LineBreakRecord.cs
- SoapAttributes.cs
- ProcessInfo.cs
- RotateTransform.cs
- DataControlFieldCollection.cs
- HostingEnvironmentException.cs
- FontCacheLogic.cs
- DataException.cs
- UsernameTokenFactoryCredential.cs
- ImageClickEventArgs.cs
- TraceSection.cs
- VisualStyleTypesAndProperties.cs
- RepeatInfo.cs
- Soap.cs
- HierarchicalDataBoundControlAdapter.cs
- basecomparevalidator.cs
- TextOnlyOutput.cs
- SystemUdpStatistics.cs
- StyleSelector.cs
- ReflectionUtil.cs
- DateTimeUtil.cs
- Privilege.cs
- RegistrationServices.cs
- CharacterMetrics.cs
- StringValidatorAttribute.cs
- Ports.cs
- DbConnectionHelper.cs
- Permission.cs
- Math.cs
- ImageMapEventArgs.cs
- TextElement.cs
- IndicShape.cs
- TaskHelper.cs
- HtmlInputRadioButton.cs
- HostExecutionContextManager.cs
- Event.cs
- DataSysAttribute.cs
- InteropAutomationProvider.cs
- LinkedResourceCollection.cs
- ImageAnimator.cs
- BindingParameterCollection.cs
- BinaryQueryOperator.cs
- ConfigurationCollectionAttribute.cs
- TraceHandler.cs
- CapabilitiesPattern.cs
- QilFunction.cs
- MetabaseSettingsIis7.cs
- PrintControllerWithStatusDialog.cs
- MessageEventSubscriptionService.cs
- HostingEnvironmentException.cs
- WmlTextViewAdapter.cs
- ComboBoxItem.cs
- DeadCharTextComposition.cs
- Encoding.cs
- RtfControls.cs
- UniformGrid.cs
- OracleInfoMessageEventArgs.cs
- sqlcontext.cs
- BooleanStorage.cs
- OracleRowUpdatingEventArgs.cs
- TemplatePropertyEntry.cs
- MatchAllMessageFilter.cs
- AnimationStorage.cs
- HwndSourceKeyboardInputSite.cs
- Transform.cs
- sapiproxy.cs
- ConstructorBuilder.cs
- InsufficientMemoryException.cs
- Button.cs
- XmlBinaryReader.cs
- XamlFigureLengthSerializer.cs
- recordstate.cs
- StatusInfoItem.cs
- ResXFileRef.cs
- WebDescriptionAttribute.cs
- _DisconnectOverlappedAsyncResult.cs
- HtmlEmptyTagControlBuilder.cs
- StrongNamePublicKeyBlob.cs
- AlphaSortedEnumConverter.cs
- FormsAuthenticationUserCollection.cs
- DomNameTable.cs
- ReadOnlyMetadataCollection.cs
- DependencyObjectPropertyDescriptor.cs
- CodeNamespace.cs
- EditingCommands.cs
- QilPatternFactory.cs
- PnrpPermission.cs