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
- TaskbarItemInfo.cs
- DeadCharTextComposition.cs
- ToolStripGripRenderEventArgs.cs
- TableCellAutomationPeer.cs
- RoleManagerEventArgs.cs
- PropertyItemInternal.cs
- SliderAutomationPeer.cs
- LocatorGroup.cs
- Memoizer.cs
- SQLBytes.cs
- securitycriticaldataformultiplegetandset.cs
- XmlObjectSerializerWriteContext.cs
- InvokeHandlers.cs
- CodeParameterDeclarationExpressionCollection.cs
- ServiceHttpModule.cs
- TableLayoutColumnStyleCollection.cs
- ClientCredentialsElement.cs
- DemultiplexingClientMessageFormatter.cs
- Package.cs
- ReaderWriterLockWrapper.cs
- CodeNamespaceCollection.cs
- SimpleExpression.cs
- ProgressBarBrushConverter.cs
- AttributeEmitter.cs
- GifBitmapDecoder.cs
- TranslateTransform3D.cs
- IResourceProvider.cs
- RowToParametersTransformer.cs
- SessionStateContainer.cs
- PreProcessor.cs
- CounterCreationDataCollection.cs
- ConsumerConnectionPointCollection.cs
- DataProtection.cs
- ParenthesizePropertyNameAttribute.cs
- DictionaryChange.cs
- DbParameterCollection.cs
- FigureHelper.cs
- StdRegProviderWrapper.cs
- dtdvalidator.cs
- CommandCollectionEditor.cs
- OuterGlowBitmapEffect.cs
- TextContainerChangedEventArgs.cs
- Solver.cs
- OleStrCAMarshaler.cs
- RadioButtonFlatAdapter.cs
- IPipelineRuntime.cs
- HtmlInputText.cs
- WinInet.cs
- ForeignKeyConstraint.cs
- RuntimeEnvironment.cs
- CompensationExtension.cs
- ServiceChannelFactory.cs
- ButtonFlatAdapter.cs
- RunWorkerCompletedEventArgs.cs
- InstallerTypeAttribute.cs
- WsdlBuildProvider.cs
- RelOps.cs
- GridViewEditEventArgs.cs
- SplineKeyFrames.cs
- DataGridViewCellValidatingEventArgs.cs
- ChunkedMemoryStream.cs
- PixelFormatConverter.cs
- ResourcesChangeInfo.cs
- ResolveNextArgumentWorkItem.cs
- SystemThemeKey.cs
- streamingZipPartStream.cs
- ProxyWebPart.cs
- GroupBoxRenderer.cs
- WorkflowCommandExtensionItem.cs
- EntitySqlQueryCacheEntry.cs
- Range.cs
- CommonProperties.cs
- ThreadStaticAttribute.cs
- EntryPointNotFoundException.cs
- EnvelopeVersion.cs
- EncoderExceptionFallback.cs
- SetIterators.cs
- ButtonFieldBase.cs
- TextBoxLine.cs
- FontFaceLayoutInfo.cs
- DCSafeHandle.cs
- BuildProvider.cs
- storepermission.cs
- Scheduler.cs
- CollectionView.cs
- ReflectPropertyDescriptor.cs
- FixedDocumentSequencePaginator.cs
- EntryWrittenEventArgs.cs
- IBuiltInEvidence.cs
- SharedUtils.cs
- XmlSerializationWriter.cs
- DuplicateWaitObjectException.cs
- TextRangeEditLists.cs
- MetadataItem.cs
- ClientRuntimeConfig.cs
- CapabilitiesState.cs
- SqlDataSource.cs
- X509ChainPolicy.cs
- ApplyHostConfigurationBehavior.cs
- TemplateField.cs