Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- MatrixAnimationBase.cs
- DefaultTraceListener.cs
- WeakEventTable.cs
- CodeLinePragma.cs
- XmlBindingWorker.cs
- DataGridViewCellStyleConverter.cs
- DataGridView.cs
- EmptyEnumerator.cs
- FlatButtonAppearance.cs
- URLAttribute.cs
- AttributeEmitter.cs
- CollectionViewProxy.cs
- RunInstallerAttribute.cs
- UpdateManifestForBrowserApplication.cs
- LoginView.cs
- XmlDataImplementation.cs
- WsatConfiguration.cs
- DateTimeConverter.cs
- ConfigDefinitionUpdates.cs
- WebPartConnectionsCancelEventArgs.cs
- VirtualDirectoryMappingCollection.cs
- SHA384Managed.cs
- AspCompat.cs
- RestHandler.cs
- DataError.cs
- PersonalizablePropertyEntry.cs
- ToolBarButton.cs
- CodeObjectCreateExpression.cs
- UnaryExpression.cs
- HasCopySemanticsAttribute.cs
- EntityTypeEmitter.cs
- SrgsElementFactory.cs
- PropertiesTab.cs
- TaskFileService.cs
- UserControlCodeDomTreeGenerator.cs
- MarkupCompiler.cs
- EventLogConfiguration.cs
- HtmlElementCollection.cs
- RemotingConfiguration.cs
- UiaCoreApi.cs
- VisualCollection.cs
- HtmlElementErrorEventArgs.cs
- PrintPreviewGraphics.cs
- Light.cs
- DataControlLinkButton.cs
- X509Chain.cs
- ComponentCollection.cs
- ZipIOExtraFieldPaddingElement.cs
- GridItemPattern.cs
- ISAPIApplicationHost.cs
- SortedList.cs
- BasicCellRelation.cs
- Lazy.cs
- LOSFormatter.cs
- SystemIcmpV4Statistics.cs
- NonPrimarySelectionGlyph.cs
- MSHTMLHost.cs
- SoapCommonClasses.cs
- DiscoveryExceptionDictionary.cs
- DispatcherTimer.cs
- ImageMap.cs
- PolyBezierSegment.cs
- PageCatalogPart.cs
- GradientStop.cs
- XmlSchemaRedefine.cs
- MouseButtonEventArgs.cs
- ChineseLunisolarCalendar.cs
- SolidColorBrush.cs
- DragEventArgs.cs
- TraceLevelHelper.cs
- DataControlPagerLinkButton.cs
- RichTextBoxConstants.cs
- FixedSOMLineCollection.cs
- JournalEntryListConverter.cs
- CommandField.cs
- StorageAssociationSetMapping.cs
- MemberInfoSerializationHolder.cs
- BindingNavigator.cs
- KnownBoxes.cs
- DesignerFrame.cs
- LinkUtilities.cs
- ClientSponsor.cs
- BasicHttpMessageSecurityElement.cs
- InvokePattern.cs
- Vars.cs
- GlobalAllocSafeHandle.cs
- PinnedBufferMemoryStream.cs
- ByteAnimation.cs
- DataMisalignedException.cs
- StringValidatorAttribute.cs
- ArgumentNullException.cs
- IteratorFilter.cs
- MatrixCamera.cs
- TogglePatternIdentifiers.cs
- FusionWrap.cs
- PresentationSource.cs
- ScrollBarRenderer.cs
- ZipPackagePart.cs
- Decimal.cs
- RegexCapture.cs