Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Documents / BlockCollection.cs / 1 / BlockCollection.cs
//----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// Description: Collection of Block elements
// Collection of Block elements - elements allowed as children
// of FlowDocument, Section, ListItem, TableCell, Floater and Figure.
//
//---------------------------------------------------------------------------
namespace System.Windows.Documents
{
using MS.Internal; // Invariant
///
/// Collection of Block elements - elements allowed as children
/// of FlowDocument, Section, ListItem, TableCell, Floater and Figure.
///
public class BlockCollection : TextElementCollection
{
//-------------------------------------------------------------------
//
// Constructors
//
//-------------------------------------------------------------------
#region Constructors
// Constructor is internal. We allow BlockCollection creation only from inside owning elements such as FlowDocument or TextElement.
// Note that when a SiblingBlocks collection is created for a Block, the owner of collection is that member Block object.
// Flag isOwnerParent indicates whether owner is a parent or a member of the collection.
internal BlockCollection(DependencyObject owner, bool isOwnerParent)
: base(owner, isOwnerParent)
{
}
#endregion Constructors
//--------------------------------------------------------------------
//
// Public Properties
//
//-------------------------------------------------------------------
#region Public Properties
///
/// Returns a first Block of this collection
///
public Block FirstBlock
{
get
{
return this.FirstChild;
}
}
///
/// Returns a last Block of this collection
///
public Block LastBlock
{
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 Block elements
// Collection of Block elements - elements allowed as children
// of FlowDocument, Section, ListItem, TableCell, Floater and Figure.
//
//---------------------------------------------------------------------------
namespace System.Windows.Documents
{
using MS.Internal; // Invariant
///
/// Collection of Block elements - elements allowed as children
/// of FlowDocument, Section, ListItem, TableCell, Floater and Figure.
///
public class BlockCollection : TextElementCollection
{
//-------------------------------------------------------------------
//
// Constructors
//
//-------------------------------------------------------------------
#region Constructors
// Constructor is internal. We allow BlockCollection creation only from inside owning elements such as FlowDocument or TextElement.
// Note that when a SiblingBlocks collection is created for a Block, the owner of collection is that member Block object.
// Flag isOwnerParent indicates whether owner is a parent or a member of the collection.
internal BlockCollection(DependencyObject owner, bool isOwnerParent)
: base(owner, isOwnerParent)
{
}
#endregion Constructors
//--------------------------------------------------------------------
//
// Public Properties
//
//-------------------------------------------------------------------
#region Public Properties
///
/// Returns a first Block of this collection
///
public Block FirstBlock
{
get
{
return this.FirstChild;
}
}
///
/// Returns a last Block of this collection
///
public Block LastBlock
{
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
- Authorization.cs
- TransportOutputChannel.cs
- ValidationErrorEventArgs.cs
- GroupItem.cs
- CacheChildrenQuery.cs
- DirectionalLight.cs
- PowerStatus.cs
- ImageSource.cs
- WSSecureConversationDec2005.cs
- MarshalByRefObject.cs
- NonParentingControl.cs
- AppAction.cs
- invalidudtexception.cs
- XamlStyleSerializer.cs
- OdbcDataAdapter.cs
- GuidTagList.cs
- NavigatorOutput.cs
- UInt16.cs
- HttpProfileGroupBase.cs
- BitmapDecoder.cs
- ObjectAssociationEndMapping.cs
- LineInfo.cs
- RetrieveVirtualItemEventArgs.cs
- TraceUtility.cs
- SqlError.cs
- XslNumber.cs
- WebPartMenuStyle.cs
- TemplateEditingVerb.cs
- BuildDependencySet.cs
- Point3DAnimationBase.cs
- GridViewUpdateEventArgs.cs
- DataGridViewCellStateChangedEventArgs.cs
- DataGridDetailsPresenter.cs
- CacheForPrimitiveTypes.cs
- LinqDataSourceEditData.cs
- SecurityHeaderLayout.cs
- EmulateRecognizeCompletedEventArgs.cs
- AnnotationService.cs
- NativeCompoundFileAPIs.cs
- AttributeQuery.cs
- DataRecord.cs
- AssemblyBuilder.cs
- ErrorHandler.cs
- DynamicObject.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- ContentPlaceHolder.cs
- PropertyMetadata.cs
- MultiPropertyDescriptorGridEntry.cs
- AsymmetricSignatureDeformatter.cs
- ImportedNamespaceContextItem.cs
- DataRelation.cs
- DataColumnCollection.cs
- OverflowException.cs
- OleDbConnection.cs
- FusionWrap.cs
- FieldAccessException.cs
- PeerApplication.cs
- PageEventArgs.cs
- PostBackOptions.cs
- DataGridColumnCollection.cs
- CryptoApi.cs
- KeyNotFoundException.cs
- SessionStateUtil.cs
- InvalidateEvent.cs
- HierarchicalDataSourceControl.cs
- SystemIPv6InterfaceProperties.cs
- SafeBitVector32.cs
- ButtonChrome.cs
- SimpleRecyclingCache.cs
- CodeDelegateCreateExpression.cs
- EncoderReplacementFallback.cs
- CultureInfoConverter.cs
- FunctionImportElement.cs
- ValueHandle.cs
- XmlNodeChangedEventArgs.cs
- ObjectListSelectEventArgs.cs
- ThaiBuddhistCalendar.cs
- DataListCommandEventArgs.cs
- WebPartManagerDesigner.cs
- EventData.cs
- MimeWriter.cs
- ResponseStream.cs
- MatrixAnimationBase.cs
- MSHTMLHostUtil.cs
- lengthconverter.cs
- InstanceStore.cs
- ClientApiGenerator.cs
- FixedSOMElement.cs
- SystemTcpStatistics.cs
- RelatedView.cs
- MessageDecoder.cs
- QilStrConcatenator.cs
- HiddenFieldPageStatePersister.cs
- MessageQueueTransaction.cs
- AsymmetricKeyExchangeDeformatter.cs
- SecurityContext.cs
- ObjectStateFormatter.cs
- MethodImplAttribute.cs
- ObjectReaderCompiler.cs
- ItemContainerProviderWrapper.cs