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
- PathHelper.cs
- FlowLayout.cs
- ExecutedRoutedEventArgs.cs
- Zone.cs
- HandlerBase.cs
- DetailsViewCommandEventArgs.cs
- Popup.cs
- ContextStack.cs
- CorrelationKey.cs
- ConditionalExpression.cs
- MultipleViewPattern.cs
- ValidatorCompatibilityHelper.cs
- DragAssistanceManager.cs
- SplitContainerDesigner.cs
- AtomMaterializer.cs
- DbConnectionPoolIdentity.cs
- WindowsListViewSubItem.cs
- DataRowExtensions.cs
- CommonDialog.cs
- Canvas.cs
- IntegerValidatorAttribute.cs
- CopyEncoder.cs
- Logging.cs
- Attributes.cs
- SerializationException.cs
- BitmapEffectDrawing.cs
- ClientOperation.cs
- RegistryExceptionHelper.cs
- InternalCompensate.cs
- CodeCatchClauseCollection.cs
- AssociationType.cs
- ViewStateChangedEventArgs.cs
- FixedSOMTextRun.cs
- TextEditorSpelling.cs
- AuthorizationRule.cs
- ProtectedConfiguration.cs
- CodeStatement.cs
- ChildTable.cs
- GeneralTransform.cs
- EncryptedKey.cs
- Listener.cs
- HtmlAnchor.cs
- DrawingAttributesDefaultValueFactory.cs
- Application.cs
- _SafeNetHandles.cs
- TextPenaltyModule.cs
- XsdCachingReader.cs
- ResourcePermissionBaseEntry.cs
- SystemBrushes.cs
- SrgsDocumentParser.cs
- XmlLanguageConverter.cs
- ConnectionManagementElementCollection.cs
- TextTreeTextNode.cs
- RangeValidator.cs
- Parser.cs
- MethodBody.cs
- DtdParser.cs
- ProcessInputEventArgs.cs
- TextTreeInsertUndoUnit.cs
- SoapMessage.cs
- RootProfilePropertySettingsCollection.cs
- TrackingStringDictionary.cs
- TextTreeDeleteContentUndoUnit.cs
- XPathAncestorIterator.cs
- TriggerBase.cs
- SiteOfOriginPart.cs
- EnumUnknown.cs
- SkipStoryboardToFill.cs
- DispatcherHookEventArgs.cs
- PropertyDescriptorComparer.cs
- DynamicField.cs
- SmiEventStream.cs
- XmlAttributeCollection.cs
- RotateTransform3D.cs
- DataList.cs
- IdnElement.cs
- PlanCompiler.cs
- TextDpi.cs
- CryptoHandle.cs
- ParserContext.cs
- __Filters.cs
- ColorMatrix.cs
- TemplateField.cs
- TimeSpanStorage.cs
- NotFiniteNumberException.cs
- RequestCachingSection.cs
- KeyNotFoundException.cs
- ThicknessAnimation.cs
- TextEditorSelection.cs
- BoolLiteral.cs
- SmiRecordBuffer.cs
- SnapLine.cs
- TdsParserSafeHandles.cs
- DesignerAutoFormatStyle.cs
- StatusStrip.cs
- CodeCommentStatementCollection.cs
- CheckableControlBaseAdapter.cs
- UserCancellationException.cs
- Span.cs
- CodeTypeMemberCollection.cs