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
- Number.cs
- SiteMapDataSourceView.cs
- SmiXetterAccessMap.cs
- TypeInfo.cs
- TextEditorLists.cs
- DataPagerFieldCollection.cs
- WorkflowInstance.cs
- BeginSelectCardRequest.cs
- MethodBody.cs
- IDReferencePropertyAttribute.cs
- DecimalAnimationBase.cs
- OdbcParameter.cs
- DataGridToolTip.cs
- HostElement.cs
- WebFormsRootDesigner.cs
- ListParaClient.cs
- Helper.cs
- BaseCodePageEncoding.cs
- BitmapFrameEncode.cs
- ByteStorage.cs
- StaticTextPointer.cs
- StringToken.cs
- DiagnosticTraceSource.cs
- SecurityKeyIdentifier.cs
- DockEditor.cs
- DateTimeSerializationSection.cs
- DateTimeParse.cs
- XsdBuildProvider.cs
- WmfPlaceableFileHeader.cs
- Point.cs
- FactoryRecord.cs
- InputMethod.cs
- ProfileEventArgs.cs
- DesigntimeLicenseContext.cs
- StaticContext.cs
- SmiEventSink.cs
- GridViewActionList.cs
- exports.cs
- SiteMapDesignerDataSourceView.cs
- ViewRendering.cs
- EntityContainerAssociationSet.cs
- ProxyManager.cs
- DriveInfo.cs
- DataGridItemAutomationPeer.cs
- MenuItemBinding.cs
- ListView.cs
- TypeDescriptionProviderAttribute.cs
- WindowsProgressbar.cs
- HtmlTernaryTree.cs
- DocumentReferenceCollection.cs
- RTLAwareMessageBox.cs
- PersonalizationAdministration.cs
- OdbcPermission.cs
- ToolStripButton.cs
- DocumentViewerAutomationPeer.cs
- PeerNearMe.cs
- RawStylusSystemGestureInputReport.cs
- DeclaredTypeValidatorAttribute.cs
- EntityContainerRelationshipSet.cs
- FixedSOMTable.cs
- sqlpipe.cs
- OperandQuery.cs
- PlatformNotSupportedException.cs
- CustomExpressionEventArgs.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ToolboxComponentsCreatedEventArgs.cs
- BitmapEffectInputData.cs
- PriorityItem.cs
- EmbeddedMailObjectsCollection.cs
- FramingChannels.cs
- SafeNativeMethods.cs
- FontCacheUtil.cs
- LocalizeDesigner.cs
- HierarchicalDataTemplate.cs
- PagePropertiesChangingEventArgs.cs
- DocumentGrid.cs
- SystemFonts.cs
- StringFreezingAttribute.cs
- ReferenceConverter.cs
- PersistChildrenAttribute.cs
- SqlStream.cs
- IdentifierService.cs
- ExtensionDataReader.cs
- ProfilePropertySettingsCollection.cs
- ContextMenuStripGroupCollection.cs
- ScriptControlDescriptor.cs
- PermissionRequestEvidence.cs
- StringResourceManager.cs
- SqlResolver.cs
- DataGridViewCellValidatingEventArgs.cs
- recordstatefactory.cs
- EqualityComparer.cs
- XhtmlStyleClass.cs
- EventLogEntry.cs
- AttributeCollection.cs
- HeaderedContentControl.cs
- TagPrefixCollection.cs
- ValidationRuleCollection.cs
- QuaternionAnimation.cs
- NamespaceEmitter.cs