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
- WizardStepCollectionEditor.cs
- NamedPipeTransportBindingElement.cs
- MenuItem.cs
- Schema.cs
- CommandID.cs
- HostVisual.cs
- MimeMapping.cs
- RuntimeComponentFilter.cs
- XmlSchemaDocumentation.cs
- RuntimeDelegateArgument.cs
- ResetableIterator.cs
- EditorPartChrome.cs
- SerialPort.cs
- RectangleF.cs
- XmlSignatureProperties.cs
- precedingquery.cs
- SoapAttributeAttribute.cs
- LocalizedNameDescriptionPair.cs
- CodeEntryPointMethod.cs
- XmlLanguageConverter.cs
- _ConnectOverlappedAsyncResult.cs
- XpsImageSerializationService.cs
- ArrayList.cs
- UnionExpr.cs
- CodeDomLoader.cs
- DeploymentExceptionMapper.cs
- TextBoxAutomationPeer.cs
- SoapAttributeAttribute.cs
- DataSourceCacheDurationConverter.cs
- DataListCommandEventArgs.cs
- ControlPropertyNameConverter.cs
- KeyValuePair.cs
- Triplet.cs
- CookieHandler.cs
- StartFileNameEditor.cs
- PolygonHotSpot.cs
- MaskedTextBoxTextEditorDropDown.cs
- SystemIcmpV6Statistics.cs
- ReadOnlyMetadataCollection.cs
- NestPullup.cs
- Aggregates.cs
- BaseDataList.cs
- StyleCollectionEditor.cs
- BufferedReadStream.cs
- WebSysDefaultValueAttribute.cs
- BigInt.cs
- HttpModuleActionCollection.cs
- NumberFormatter.cs
- AttributeProviderAttribute.cs
- WindowHideOrCloseTracker.cs
- MultipleFilterMatchesException.cs
- HttpModulesSection.cs
- SQLSingleStorage.cs
- Pointer.cs
- DragEvent.cs
- UpWmlMobileTextWriter.cs
- ParseElement.cs
- StringReader.cs
- MetadataPropertyCollection.cs
- SQLGuidStorage.cs
- CapabilitiesRule.cs
- Label.cs
- BamlResourceContent.cs
- TemplateManager.cs
- ConversionContext.cs
- FrameworkContentElement.cs
- ListBox.cs
- DataProtection.cs
- BitmapEffectDrawingContent.cs
- DataGridViewLinkColumn.cs
- CompositeFontParser.cs
- MethodSet.cs
- BidPrivateBase.cs
- DataGridCellInfo.cs
- SafeEventHandle.cs
- ComponentEditorPage.cs
- NullableDoubleMinMaxAggregationOperator.cs
- EntityType.cs
- DesignerHelpers.cs
- KeysConverter.cs
- SamlSubjectStatement.cs
- EnumBuilder.cs
- TableItemStyle.cs
- RuleSettings.cs
- DrawListViewColumnHeaderEventArgs.cs
- CharAnimationUsingKeyFrames.cs
- EncodingStreamWrapper.cs
- ConfigLoader.cs
- TableRowCollection.cs
- ErrorProvider.cs
- SqlFacetAttribute.cs
- Icon.cs
- DrawingCollection.cs
- MissingFieldException.cs
- CodeExpressionCollection.cs
- HtmlTable.cs
- OutputCacheEntry.cs
- ListControl.cs
- EqualityComparer.cs
- BrowserCapabilitiesFactoryBase.cs