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
- SqlRowUpdatingEvent.cs
- FramingChannels.cs
- Imaging.cs
- DataServiceRequestArgs.cs
- HtmlInputButton.cs
- StructuralCache.cs
- TcpHostedTransportConfiguration.cs
- SimpleHandlerBuildProvider.cs
- StrokeNodeOperations.cs
- QilExpression.cs
- InkCanvasAutomationPeer.cs
- ExtensionQuery.cs
- ConnectionStringsExpressionBuilder.cs
- CompiledXpathExpr.cs
- PriorityQueue.cs
- CredentialSelector.cs
- MessageEventSubscriptionService.cs
- TextRenderer.cs
- ConfigurationElementProperty.cs
- XsltCompileContext.cs
- XmlTypeAttribute.cs
- ProtocolsConfigurationHandler.cs
- InfocardChannelParameter.cs
- TouchDevice.cs
- RefreshPropertiesAttribute.cs
- DefaultCommandConverter.cs
- ImageField.cs
- ListViewGroupConverter.cs
- AssemblyUtil.cs
- XmlChildNodes.cs
- XmlBinaryReader.cs
- ChannelProtectionRequirements.cs
- ListViewDataItem.cs
- SqlXml.cs
- HwndStylusInputProvider.cs
- Environment.cs
- OrderedDictionaryStateHelper.cs
- ConnectionStringsSection.cs
- AesManaged.cs
- FormViewUpdatedEventArgs.cs
- ParameterModifier.cs
- InvalidFilterCriteriaException.cs
- SymbolTable.cs
- XmlHierarchyData.cs
- XmlSecureResolver.cs
- __Filters.cs
- DataGridState.cs
- DataGridViewImageCell.cs
- ClientApiGenerator.cs
- CompareValidator.cs
- PageThemeCodeDomTreeGenerator.cs
- DecoratedNameAttribute.cs
- WebConfigurationHost.cs
- LogExtent.cs
- FileChangesMonitor.cs
- _TimerThread.cs
- ClientTargetCollection.cs
- TextEmbeddedObject.cs
- Font.cs
- XmlDictionaryReader.cs
- InputLanguageSource.cs
- SqlRetyper.cs
- DoubleLinkListEnumerator.cs
- ObjectDataProvider.cs
- MaskedTextBox.cs
- ProxySimple.cs
- RijndaelManagedTransform.cs
- MessageSecurityOverHttp.cs
- WebMessageEncodingElement.cs
- TextDecorationCollection.cs
- WaitHandle.cs
- Size.cs
- ProfilePropertySettings.cs
- PatternMatcher.cs
- DirectoryRootQuery.cs
- Vector.cs
- Debugger.cs
- FormViewDeleteEventArgs.cs
- XmlSignificantWhitespace.cs
- UnicodeEncoding.cs
- RC2.cs
- DataSourceCacheDurationConverter.cs
- ProxyWebPartConnectionCollection.cs
- SafeCoTaskMem.cs
- SessionState.cs
- Brushes.cs
- OneOfTypeConst.cs
- TextClipboardData.cs
- MD5.cs
- TypeLibConverter.cs
- ListDictionary.cs
- _NegoState.cs
- FileDialogCustomPlace.cs
- InstanceCollisionException.cs
- DocumentPageTextView.cs
- NativeRecognizer.cs
- AppDomainProtocolHandler.cs
- ServiceReflector.cs
- SHA256Managed.cs
- Property.cs