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
- CodeDirectiveCollection.cs
- CodeSnippetTypeMember.cs
- TreeViewHitTestInfo.cs
- PartitionResolver.cs
- _HTTPDateParse.cs
- DefaultWorkflowTransactionService.cs
- SamlAdvice.cs
- WebPartExportVerb.cs
- DbProviderFactoriesConfigurationHandler.cs
- DirtyTextRange.cs
- ModelUtilities.cs
- WCFServiceClientProxyGenerator.cs
- PartialCachingControl.cs
- NavigationPropertySingletonExpression.cs
- RewritingPass.cs
- StylusPointCollection.cs
- XmlSchemaValidator.cs
- CompressionTransform.cs
- Aggregates.cs
- ConfigurationManager.cs
- COMException.cs
- SymmetricKeyWrap.cs
- ClientOptions.cs
- CurrencyManager.cs
- AppSecurityManager.cs
- ToolStripDropTargetManager.cs
- GraphicsState.cs
- InputBinding.cs
- View.cs
- ClientRuntimeConfig.cs
- MatchAttribute.cs
- IdentityManager.cs
- WindowsFormsLinkLabel.cs
- DbProviderConfigurationHandler.cs
- CommonServiceBehaviorElement.cs
- DeleteCardRequest.cs
- NumberFormatter.cs
- OrderPreservingPipeliningSpoolingTask.cs
- WindowsButton.cs
- Contracts.cs
- WebPartTransformerCollection.cs
- tooltip.cs
- SubpageParaClient.cs
- SystemBrushes.cs
- __TransparentProxy.cs
- UrlMappingsModule.cs
- ContentPresenter.cs
- DefaultSettingsSection.cs
- VectorAnimationBase.cs
- SymbolType.cs
- CodePropertyReferenceExpression.cs
- OpenCollectionAsyncResult.cs
- HttpContextServiceHost.cs
- XmlSchemaComplexContentExtension.cs
- Path.cs
- SafeNativeMethodsOther.cs
- EnumBuilder.cs
- WebSysDefaultValueAttribute.cs
- EntityViewContainer.cs
- BamlCollectionHolder.cs
- ApplicationCommands.cs
- MenuAdapter.cs
- _BasicClient.cs
- SqlGenerator.cs
- NamedPermissionSet.cs
- PermissionAttributes.cs
- SQLDateTime.cs
- OpacityConverter.cs
- ObjectPersistData.cs
- SpeechRecognitionEngine.cs
- ObjectDataSource.cs
- ProcessThread.cs
- HttpListenerException.cs
- IfElseDesigner.xaml.cs
- ProfessionalColors.cs
- PropVariant.cs
- ReceiveActivityValidator.cs
- CryptoApi.cs
- PeerNameResolver.cs
- DbConnectionStringBuilder.cs
- PeerNameRegistration.cs
- ExpressionVisitorHelpers.cs
- SmiContextFactory.cs
- HostingEnvironmentSection.cs
- HybridObjectCache.cs
- SqlNode.cs
- ArrayTypeMismatchException.cs
- MergeEnumerator.cs
- ContextBase.cs
- ProfileServiceManager.cs
- CodeTryCatchFinallyStatement.cs
- XmlCharCheckingReader.cs
- WebControlsSection.cs
- NameValueCollection.cs
- CodeTypeDeclarationCollection.cs
- WindowsAuthenticationModule.cs
- StrokeRenderer.cs
- XmlSchemaAnyAttribute.cs
- HostingEnvironmentException.cs
- login.cs