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
- DetailsViewPageEventArgs.cs
- FontStyles.cs
- SystemMulticastIPAddressInformation.cs
- TwoPhaseCommit.cs
- AutomationPropertyInfo.cs
- ToolStripControlHost.cs
- ReadOnlyPermissionSet.cs
- SafeFileMapViewHandle.cs
- DropSource.cs
- DocumentEventArgs.cs
- TreeView.cs
- BaseCollection.cs
- SchemaConstraints.cs
- DocumentPageTextView.cs
- BrowserInteropHelper.cs
- MasterPage.cs
- oledbmetadatacollectionnames.cs
- ObjectQueryProvider.cs
- ObjectAnimationBase.cs
- DataGridViewCellCollection.cs
- RegexGroupCollection.cs
- xsdvalidator.cs
- MarkupProperty.cs
- StrongNameIdentityPermission.cs
- InvalidPipelineStoreException.cs
- ConfigurationSchemaErrors.cs
- PersonalizableAttribute.cs
- EventSinkActivityDesigner.cs
- DataSysAttribute.cs
- Adorner.cs
- HttpProfileGroupBase.cs
- MessageContractAttribute.cs
- MetadataArtifactLoaderComposite.cs
- SamlDelegatingWriter.cs
- StandardBindingImporter.cs
- PointAnimationUsingKeyFrames.cs
- XmlNamespaceDeclarationsAttribute.cs
- Visual3D.cs
- WebScriptServiceHostFactory.cs
- Evidence.cs
- BuildTopDownAttribute.cs
- Faults.cs
- EntityDataSourceWizardForm.cs
- UpdatePanelControlTrigger.cs
- XmlSchemaAll.cs
- RegexReplacement.cs
- GZipDecoder.cs
- D3DImage.cs
- ViewStateModeByIdAttribute.cs
- Converter.cs
- SpellerInterop.cs
- AffineTransform3D.cs
- HttpGetClientProtocol.cs
- AutomationElement.cs
- OutKeywords.cs
- ProfileService.cs
- PropertySet.cs
- ImportOptions.cs
- X509Utils.cs
- Graphics.cs
- Resources.Designer.cs
- DataList.cs
- ContentDisposition.cs
- TableItemStyle.cs
- FixedStringLookup.cs
- DispatcherEventArgs.cs
- SqlCacheDependencyDatabaseCollection.cs
- ThreadSafeList.cs
- DurationConverter.cs
- TextDecorationLocationValidation.cs
- ConnectionPoolRegistry.cs
- DrawingBrush.cs
- EdmEntityTypeAttribute.cs
- FontEditor.cs
- PageAction.cs
- SortQueryOperator.cs
- StringInfo.cs
- KnownIds.cs
- _FtpDataStream.cs
- Token.cs
- PageThemeBuildProvider.cs
- HorizontalAlignConverter.cs
- RemotingConfiguration.cs
- DocumentXmlWriter.cs
- DesignerEventService.cs
- PropertyGridDesigner.cs
- GuidelineSet.cs
- ResourcePool.cs
- DockPattern.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- LogFlushAsyncResult.cs
- AutomationPatternInfo.cs
- TimerElapsedEvenArgs.cs
- LocalTransaction.cs
- RoleGroup.cs
- HostingEnvironmentSection.cs
- EtwTrace.cs
- PriorityBindingExpression.cs
- CodeAttachEventStatement.cs
- SQLBytesStorage.cs