Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / BlockCollection.cs / 1305600 / 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
- XmlArrayItemAttributes.cs
- AutomationEvent.cs
- SqlProfileProvider.cs
- PhonemeEventArgs.cs
- AccessedThroughPropertyAttribute.cs
- ToolStripDropDownItem.cs
- LayoutTable.cs
- SerializationEventsCache.cs
- TextChange.cs
- Rules.cs
- ReflectPropertyDescriptor.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- KeyboardEventArgs.cs
- RenameRuleObjectDialog.cs
- TypeConverterAttribute.cs
- SqlCacheDependency.cs
- NoResizeSelectionBorderGlyph.cs
- TransformerInfoCollection.cs
- XmlAttributeOverrides.cs
- MimeMapping.cs
- WarningException.cs
- RuntimeConfigLKG.cs
- ExpandoObject.cs
- BinaryMethodMessage.cs
- XmlCharType.cs
- CompilerParameters.cs
- WorkflowDesignerMessageFilter.cs
- Utils.cs
- AffineTransform3D.cs
- ConsumerConnectionPointCollection.cs
- OutputCacheSettingsSection.cs
- baseshape.cs
- StylusPointDescription.cs
- SQLGuid.cs
- SimpleFieldTemplateFactory.cs
- TabControl.cs
- SecureStringHasher.cs
- DllHostedComPlusServiceHost.cs
- IndentedTextWriter.cs
- StorageFunctionMapping.cs
- ControlCollection.cs
- DrawingVisualDrawingContext.cs
- ProxyWebPartManager.cs
- AutoGeneratedField.cs
- NetDataContractSerializer.cs
- HScrollProperties.cs
- CodeGeneratorOptions.cs
- CompiledXpathExpr.cs
- Parser.cs
- EmptyWorkItem.cs
- TemplateBamlTreeBuilder.cs
- ConfigXmlDocument.cs
- TextWriterTraceListener.cs
- CompilerScope.Storage.cs
- DropTarget.cs
- LoginUtil.cs
- PointLightBase.cs
- StringFreezingAttribute.cs
- ColorConverter.cs
- HasCopySemanticsAttribute.cs
- CachedFontFace.cs
- Form.cs
- PtsPage.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SyntaxCheck.cs
- validationstate.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- Encoder.cs
- ImageMetadata.cs
- MetadataProperty.cs
- FixedSOMLineRanges.cs
- AttributeCollection.cs
- ExpressionBuilder.cs
- ObjectKeyFrameCollection.cs
- Point.cs
- InputMethodStateChangeEventArgs.cs
- UnsignedPublishLicense.cs
- BuilderPropertyEntry.cs
- RegexFCD.cs
- ReceiveParametersContent.cs
- ListBox.cs
- ReaderWriterLockWrapper.cs
- DragDropHelper.cs
- GridItem.cs
- GeneralTransform3DCollection.cs
- BindingExpressionBase.cs
- CodeNamespaceImport.cs
- BaseValidator.cs
- EventManager.cs
- KeyNotFoundException.cs
- PublishLicense.cs
- BaseDataBoundControl.cs
- CodeTypeDeclaration.cs
- BamlRecordWriter.cs
- BuildManagerHost.cs
- SequenceNumber.cs
- DataMisalignedException.cs
- EventDescriptorCollection.cs
- RepeatButtonAutomationPeer.cs
- XsdBuilder.cs