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
- WebControlAdapter.cs
- SafeEventLogWriteHandle.cs
- DataGridViewAccessibleObject.cs
- AppearanceEditorPart.cs
- SecurityDocument.cs
- EncodingDataItem.cs
- ManagedIStream.cs
- NativeRecognizer.cs
- MsmqEncryptionAlgorithm.cs
- ControlBindingsCollection.cs
- FlowDocumentReaderAutomationPeer.cs
- BaseDataList.cs
- TdsParser.cs
- NativeRightsManagementAPIsStructures.cs
- ImageBrush.cs
- SharedStatics.cs
- AdornerHitTestResult.cs
- TableRow.cs
- TraceHelpers.cs
- StylusShape.cs
- EventDescriptorCollection.cs
- NotEqual.cs
- SafeCoTaskMem.cs
- Size3D.cs
- SqlSupersetValidator.cs
- SoapCodeExporter.cs
- DLinqColumnProvider.cs
- XXXInfos.cs
- ParentQuery.cs
- ReferencedType.cs
- DrawingDrawingContext.cs
- Intellisense.cs
- CqlLexer.cs
- X509SecurityToken.cs
- InvalidPropValue.cs
- SerTrace.cs
- NamespaceEmitter.cs
- PreservationFileReader.cs
- FileDialog_Vista.cs
- HandlerBase.cs
- Pool.cs
- OdbcDataReader.cs
- PhonemeConverter.cs
- ImageAnimator.cs
- HtmlTableCellCollection.cs
- WebBrowserBase.cs
- SerializationInfoEnumerator.cs
- CodeSnippetExpression.cs
- DateTimeHelper.cs
- PerfCounters.cs
- ViewLoader.cs
- SchemaElementLookUpTable.cs
- LocalizedNameDescriptionPair.cs
- KnownTypes.cs
- UpDownBase.cs
- PublisherIdentityPermission.cs
- ConfigurationValue.cs
- PropertyGridDesigner.cs
- DesignerAdapterUtil.cs
- LinkedResource.cs
- XmlQueryRuntime.cs
- StylusPointCollection.cs
- datacache.cs
- ScrollItemPattern.cs
- ListViewSelectEventArgs.cs
- XmlResolver.cs
- ObjectStateManagerMetadata.cs
- DescendentsWalkerBase.cs
- TimeZone.cs
- BrowserDefinitionCollection.cs
- WebPartChrome.cs
- UnsupportedPolicyOptionsException.cs
- UserMapPath.cs
- Number.cs
- ClientRoleProvider.cs
- Run.cs
- DataRecordInternal.cs
- RedirectionProxy.cs
- ExternalException.cs
- SqlCommandBuilder.cs
- TreeViewItem.cs
- DocumentReferenceCollection.cs
- Typography.cs
- LoadGrammarCompletedEventArgs.cs
- ConversionValidationRule.cs
- AndCondition.cs
- DataTableMappingCollection.cs
- DesignTimeVisibleAttribute.cs
- CatalogPartDesigner.cs
- ClientScriptManager.cs
- CollectionViewGroupRoot.cs
- XsdCachingReader.cs
- CodeDomExtensionMethods.cs
- EventMappingSettingsCollection.cs
- DesignerActionUIStateChangeEventArgs.cs
- Adorner.cs
- Pair.cs
- DiscoveryDocumentReference.cs
- RtfToXamlLexer.cs
- BindingElementExtensionElement.cs