Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ListViewTableRow.cs
- ListBoxChrome.cs
- CustomTypeDescriptor.cs
- ViewGenResults.cs
- TrackPointCollection.cs
- RequestResizeEvent.cs
- FormViewDeleteEventArgs.cs
- PropertyGridCommands.cs
- DigestTraceRecordHelper.cs
- RenderCapability.cs
- PaintValueEventArgs.cs
- DateTimeStorage.cs
- DynamicValueConverter.cs
- WhitespaceSignificantCollectionAttribute.cs
- LogicalExpr.cs
- StructuralObject.cs
- UniqueID.cs
- GlyphsSerializer.cs
- WebPartChrome.cs
- BooleanConverter.cs
- SplitContainerDesigner.cs
- ValueSerializer.cs
- DataFieldConverter.cs
- TagNameToTypeMapper.cs
- ReplacementText.cs
- GenericAuthenticationEventArgs.cs
- GlobalItem.cs
- DesignerExtenders.cs
- WinEventQueueItem.cs
- MaterialCollection.cs
- OutputCacheSettingsSection.cs
- TextBoxAutomationPeer.cs
- AuthenticationServiceManager.cs
- WebContentFormatHelper.cs
- SortQuery.cs
- DesignerTransactionCloseEvent.cs
- PlainXmlSerializer.cs
- CodeGenerator.cs
- Util.cs
- ListViewItem.cs
- MemoryRecordBuffer.cs
- NativeMethods.cs
- UndoManager.cs
- ArrangedElement.cs
- tibetanshape.cs
- SelectionGlyph.cs
- CodeGenerator.cs
- Operator.cs
- AutoResizedEvent.cs
- RecordBuilder.cs
- RotateTransform.cs
- GreenMethods.cs
- OracleColumn.cs
- AssociationSetEnd.cs
- DoubleUtil.cs
- SqlPersonalizationProvider.cs
- OleDbSchemaGuid.cs
- OdbcConnectionString.cs
- TypefaceCollection.cs
- PermissionSetTriple.cs
- WasNotInstalledException.cs
- UIElementParagraph.cs
- PackageRelationshipSelector.cs
- TableStyle.cs
- SqlLiftWhereClauses.cs
- MouseGesture.cs
- RtfToken.cs
- ZipArchive.cs
- InheritedPropertyChangedEventArgs.cs
- LocatorPart.cs
- UInt32Storage.cs
- DataKeyCollection.cs
- AssemblyCache.cs
- CollectionBase.cs
- XmlWrappingWriter.cs
- DataColumnMappingCollection.cs
- SQLString.cs
- AllMembershipCondition.cs
- SerializationHelper.cs
- EncoderNLS.cs
- XNameTypeConverter.cs
- PointLightBase.cs
- ReferenceEqualityComparer.cs
- TextEvent.cs
- DefinitionBase.cs
- ISAPIWorkerRequest.cs
- Roles.cs
- ProxySimple.cs
- NotifyCollectionChangedEventArgs.cs
- RadialGradientBrush.cs
- ResourceIDHelper.cs
- ListViewTableCell.cs
- __Error.cs
- CompiledQueryCacheKey.cs
- RemotingAttributes.cs
- StrokeIntersection.cs
- HashStream.cs
- Math.cs
- ServiceOperationViewControl.cs
- SqlPersonalizationProvider.cs