Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Documents / ListItemCollection.cs / 1 / 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
- SystemIPGlobalProperties.cs
- TabControlCancelEvent.cs
- DefaultDialogButtons.cs
- HeaderUtility.cs
- ObjectSecurity.cs
- DependencyProperty.cs
- sqlinternaltransaction.cs
- ErasingStroke.cs
- MergeLocalizationDirectives.cs
- XmlnsCache.cs
- XmlDataContract.cs
- ParameterBuilder.cs
- EntityStoreSchemaFilterEntry.cs
- TimeSpanSecondsConverter.cs
- SymbolPair.cs
- StateRuntime.cs
- FunctionDescription.cs
- PathTooLongException.cs
- XmlTextReader.cs
- EntityParameter.cs
- XmlSchemaAttributeGroup.cs
- PrivacyNoticeElement.cs
- XmlDataCollection.cs
- DoubleAnimationClockResource.cs
- CodeExpressionRuleDeclaration.cs
- OverflowException.cs
- ValidationError.cs
- UmAlQuraCalendar.cs
- ListControl.cs
- GridPatternIdentifiers.cs
- ConfigurationPermission.cs
- KnownTypeAttribute.cs
- DataGridViewColumnConverter.cs
- TypefaceMetricsCache.cs
- ParallelForEach.cs
- securitycriticaldataformultiplegetandset.cs
- HostingEnvironmentException.cs
- NamespaceInfo.cs
- SecurityStandardsManager.cs
- TypeInfo.cs
- ProtectedUri.cs
- UnsafeNativeMethods.cs
- WebPartDisplayModeCancelEventArgs.cs
- FileDialogCustomPlacesCollection.cs
- XmlSignificantWhitespace.cs
- BatchParser.cs
- CommandEventArgs.cs
- RedistVersionInfo.cs
- XmlAggregates.cs
- WsdlWriter.cs
- DataBindingValueUIHandler.cs
- ClientTarget.cs
- LeftCellWrapper.cs
- FormViewCommandEventArgs.cs
- BitmapEffectDrawingContextState.cs
- LeafCellTreeNode.cs
- SatelliteContractVersionAttribute.cs
- HttpGetClientProtocol.cs
- AxDesigner.cs
- GridItemCollection.cs
- XmlDocumentType.cs
- StylusPointPropertyId.cs
- PassportAuthentication.cs
- GlyphRunDrawing.cs
- MachinePropertyVariants.cs
- VerticalConnector.xaml.cs
- Enum.cs
- Utility.cs
- ReachFixedDocumentSerializerAsync.cs
- RawAppCommandInputReport.cs
- PageStatePersister.cs
- TextStore.cs
- TransformConverter.cs
- UpdateCompiler.cs
- ComponentTray.cs
- CharacterMetrics.cs
- TypeExtensionConverter.cs
- Blend.cs
- ValidationHelper.cs
- safex509handles.cs
- RichTextBox.cs
- RangeEnumerable.cs
- ImmutableObjectAttribute.cs
- DbSetClause.cs
- Odbc32.cs
- ProcessHostConfigUtils.cs
- XmlILStorageConverter.cs
- BindingContext.cs
- BitmapVisualManager.cs
- CalendarTable.cs
- PagerSettings.cs
- SQLInt16.cs
- UnionCodeGroup.cs
- AnimationException.cs
- DataSourceExpressionCollection.cs
- DataColumn.cs
- WebBrowserProgressChangedEventHandler.cs
- NodeLabelEditEvent.cs
- ConfigXmlElement.cs
- SerializationAttributes.cs