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
- RelationalExpressions.cs
- xmlglyphRunInfo.cs
- Single.cs
- ByteKeyFrameCollection.cs
- GenericNameHandler.cs
- RoleGroupCollection.cs
- RsaSecurityToken.cs
- SystemColors.cs
- SubstitutionDesigner.cs
- CodeAccessSecurityEngine.cs
- CodeRegionDirective.cs
- MobileListItemCollection.cs
- EpmCustomContentWriterNodeData.cs
- SqlClientFactory.cs
- SelectionRangeConverter.cs
- ObjectResult.cs
- DropShadowBitmapEffect.cs
- JournalNavigationScope.cs
- Rect.cs
- Exceptions.cs
- HttpPostProtocolReflector.cs
- CodeDirectoryCompiler.cs
- MaskInputRejectedEventArgs.cs
- Codec.cs
- ColorTranslator.cs
- ColumnHeader.cs
- XmlWellformedWriter.cs
- Effect.cs
- ValidatorCollection.cs
- SystemParameters.cs
- FlowDocumentPaginator.cs
- messageonlyhwndwrapper.cs
- GridViewDeleteEventArgs.cs
- _NegoState.cs
- ProjectionAnalyzer.cs
- cookiecontainer.cs
- MatrixAnimationBase.cs
- ModelTreeEnumerator.cs
- SqlParameter.cs
- BaseCodeDomTreeGenerator.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- MimeReturn.cs
- Emitter.cs
- WebPartConnectionsConnectVerb.cs
- EmptyImpersonationContext.cs
- SystemIcmpV6Statistics.cs
- XmlDigitalSignatureProcessor.cs
- TypeLoadException.cs
- CmsInterop.cs
- ContentFileHelper.cs
- DateTimeFormat.cs
- StrongNameIdentityPermission.cs
- SqlHelper.cs
- UserControlFileEditor.cs
- ProfileSettings.cs
- CompoundFileStorageReference.cs
- SoapObjectInfo.cs
- securitycriticaldataformultiplegetandset.cs
- ScrollBar.cs
- NumberAction.cs
- DependencyObjectPropertyDescriptor.cs
- HtmlHead.cs
- _TransmitFileOverlappedAsyncResult.cs
- Adorner.cs
- AttachedAnnotationChangedEventArgs.cs
- TextElementEnumerator.cs
- PagerSettings.cs
- EntityStoreSchemaFilterEntry.cs
- DataGridToolTip.cs
- MatrixCamera.cs
- CommentEmitter.cs
- WebRequestModuleElementCollection.cs
- StorageConditionPropertyMapping.cs
- RectangleHotSpot.cs
- GroupBoxAutomationPeer.cs
- VirtualPathUtility.cs
- RemoteWebConfigurationHost.cs
- TableLayoutSettingsTypeConverter.cs
- ListControl.cs
- XmlQueryContext.cs
- PngBitmapEncoder.cs
- WorkflowIdleElement.cs
- GZipDecoder.cs
- HttpRuntimeSection.cs
- ArrayListCollectionBase.cs
- EventHandlerService.cs
- SocketException.cs
- OrderedDictionary.cs
- XmlText.cs
- DateTimeFormat.cs
- ResourceDescriptionAttribute.cs
- XmlDomTextWriter.cs
- DataError.cs
- DbConvert.cs
- ReadOnlyPropertyMetadata.cs
- ChannelBinding.cs
- LinqDataSourceUpdateEventArgs.cs
- Matrix3D.cs
- SqlBulkCopy.cs
- EventArgs.cs