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
- UiaCoreApi.cs
- SqlDataSourceStatusEventArgs.cs
- PlatformNotSupportedException.cs
- ProfileService.cs
- TripleDESCryptoServiceProvider.cs
- WebPartConnectionsDisconnectVerb.cs
- HealthMonitoringSection.cs
- X509Certificate2.cs
- _SingleItemRequestCache.cs
- LicFileLicenseProvider.cs
- CodeNamespace.cs
- DriveInfo.cs
- AttachedAnnotationChangedEventArgs.cs
- QueryContinueDragEventArgs.cs
- FixUp.cs
- GridEntryCollection.cs
- MatrixIndependentAnimationStorage.cs
- webeventbuffer.cs
- ReferenceTypeElement.cs
- AsyncOperationLifetimeManager.cs
- TemplateLookupAction.cs
- ShapingWorkspace.cs
- Statements.cs
- HelpKeywordAttribute.cs
- SubMenuStyle.cs
- DelimitedListTraceListener.cs
- DataGridViewCheckBoxCell.cs
- DbReferenceCollection.cs
- BitmapDecoder.cs
- XPathDocumentIterator.cs
- InvalidAsynchronousStateException.cs
- DocumentApplicationJournalEntry.cs
- WebUtil.cs
- HiddenFieldPageStatePersister.cs
- AssemblyAttributes.cs
- PerformanceCounterCategory.cs
- TypeDelegator.cs
- WebServiceTypeData.cs
- BindingExpression.cs
- SortDescriptionCollection.cs
- CaretElement.cs
- ServiceDescriptionImporter.cs
- WindowProviderWrapper.cs
- JoinCqlBlock.cs
- SerializerDescriptor.cs
- MediaEntryAttribute.cs
- xmlsaver.cs
- CacheEntry.cs
- StateWorkerRequest.cs
- Int16Animation.cs
- ResourcePermissionBaseEntry.cs
- SizeLimitedCache.cs
- ToolStripItem.cs
- ObjectTypeMapping.cs
- DetailsViewModeEventArgs.cs
- DetailsViewDesigner.cs
- SqlUDTStorage.cs
- InvalidOperationException.cs
- PublisherIdentityPermission.cs
- TextDecorationCollection.cs
- AudioLevelUpdatedEventArgs.cs
- UriSection.cs
- RegisteredDisposeScript.cs
- ObfuscateAssemblyAttribute.cs
- JsonByteArrayDataContract.cs
- Odbc32.cs
- TabRenderer.cs
- TransactionProtocol.cs
- X509UI.cs
- PermissionToken.cs
- InkCanvasInnerCanvas.cs
- Message.cs
- TemplateControlBuildProvider.cs
- XsltException.cs
- ContainerUIElement3D.cs
- MetadataSet.cs
- NativeMethods.cs
- StylusButtonEventArgs.cs
- EdmComplexTypeAttribute.cs
- ToolStripPanelCell.cs
- StateBag.cs
- ApplicationActivator.cs
- Viewport3DVisual.cs
- ElementMarkupObject.cs
- ViewGenerator.cs
- SqlFunctionAttribute.cs
- RegistryPermission.cs
- TimeoutValidationAttribute.cs
- RouteParser.cs
- Crypto.cs
- VirtualPath.cs
- UriTemplateVariablePathSegment.cs
- XamlPoint3DCollectionSerializer.cs
- ConnectionConsumerAttribute.cs
- UriSection.cs
- OraclePermission.cs
- FontNameEditor.cs
- MouseActionConverter.cs
- CaseCqlBlock.cs
- SequentialOutput.cs