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
- DetailsViewModeEventArgs.cs
- SymLanguageType.cs
- GlobalProxySelection.cs
- Stacktrace.cs
- XamlSerializer.cs
- OdbcConnectionFactory.cs
- ParserStack.cs
- CodeMemberField.cs
- Ppl.cs
- GeneralTransform3D.cs
- ControlValuePropertyAttribute.cs
- NamespaceCollection.cs
- CompressEmulationStream.cs
- TextDataBindingHandler.cs
- ContextBase.cs
- StatusCommandUI.cs
- GeometryModel3D.cs
- ProfilePropertyMetadata.cs
- BitConverter.cs
- HttpsChannelListener.cs
- WrapPanel.cs
- MorphHelper.cs
- ResourceExpressionBuilder.cs
- Line.cs
- CriticalHandle.cs
- PeerApplication.cs
- KeyValueConfigurationCollection.cs
- SerializerProvider.cs
- Rss20ItemFormatter.cs
- HuffModule.cs
- HybridDictionary.cs
- ShapingEngine.cs
- ConnectionPoint.cs
- CacheMemory.cs
- LinkLabel.cs
- EndpointAddress.cs
- Zone.cs
- SupportsEventValidationAttribute.cs
- ArgumentException.cs
- ProxyWebPartManager.cs
- RTLAwareMessageBox.cs
- CompiledAction.cs
- Accessible.cs
- Typography.cs
- PropertyToken.cs
- CustomAssemblyResolver.cs
- OrderablePartitioner.cs
- HtmlString.cs
- DeclarativeExpressionConditionDeclaration.cs
- Rectangle.cs
- ObjectItemAttributeAssemblyLoader.cs
- RenderingEventArgs.cs
- DesignerLabelAdapter.cs
- Queue.cs
- NotificationContext.cs
- XmlProcessingInstruction.cs
- LoginDesignerUtil.cs
- ComboBox.cs
- NavigatingCancelEventArgs.cs
- LinkTarget.cs
- PropagatorResult.cs
- RijndaelCryptoServiceProvider.cs
- PaperSize.cs
- ApplicationActivator.cs
- SmtpNtlmAuthenticationModule.cs
- MultipleViewProviderWrapper.cs
- PartitionResolver.cs
- XmlSchemaImporter.cs
- CommandDesigner.cs
- WindowsGraphics2.cs
- MessageBodyMemberAttribute.cs
- HttpCachePolicy.cs
- ObjectResult.cs
- MostlySingletonList.cs
- MILUtilities.cs
- State.cs
- TargetInvocationException.cs
- ConfigurationException.cs
- ExpressionBuilder.cs
- util.cs
- PortCache.cs
- ClientSettings.cs
- CustomErrorsSection.cs
- WindowsProgressbar.cs
- UserPreferenceChangedEventArgs.cs
- TimeSpanOrInfiniteValidator.cs
- DocumentViewerAutomationPeer.cs
- ObjectTag.cs
- SafeNativeMethods.cs
- VectorConverter.cs
- NumberFormatter.cs
- MatrixTransform.cs
- ZeroOpNode.cs
- BinHexDecoder.cs
- Base64Stream.cs
- CommentEmitter.cs
- COM2AboutBoxPropertyDescriptor.cs
- SByteConverter.cs
- FtpWebResponse.cs
- StorageBasedPackageProperties.cs