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
- ScriptControlDescriptor.cs
- DataGridColumnStyleMappingNameEditor.cs
- clipboard.cs
- TimestampInformation.cs
- PageEventArgs.cs
- PhonemeEventArgs.cs
- HashMembershipCondition.cs
- NetPeerTcpBindingCollectionElement.cs
- RegexInterpreter.cs
- LongPath.cs
- AssemblyBuilder.cs
- DecoderNLS.cs
- NotifyParentPropertyAttribute.cs
- AssertHelper.cs
- GatewayDefinition.cs
- LinkUtilities.cs
- SqlLiftWhereClauses.cs
- ColorTranslator.cs
- UrlMapping.cs
- SqlInternalConnection.cs
- MailDefinition.cs
- DataGridViewComboBoxCell.cs
- QuaternionAnimationUsingKeyFrames.cs
- Types.cs
- Knowncolors.cs
- HTMLTagNameToTypeMapper.cs
- ToolStripInSituService.cs
- XmlBoundElement.cs
- KnownBoxes.cs
- ClientRuntimeConfig.cs
- GACMembershipCondition.cs
- AuthenticationException.cs
- NonVisualControlAttribute.cs
- Attributes.cs
- LinqDataView.cs
- ExtentJoinTreeNode.cs
- SecurityTokenAuthenticator.cs
- AsnEncodedData.cs
- FixedHyperLink.cs
- WhereaboutsReader.cs
- EntityDataSourceSelectingEventArgs.cs
- ExtenderControl.cs
- CodeTypeMemberCollection.cs
- MemberHolder.cs
- base64Transforms.cs
- ParseHttpDate.cs
- ReflectTypeDescriptionProvider.cs
- AutomationPattern.cs
- GridItemCollection.cs
- FontInfo.cs
- ValidateNames.cs
- WebExceptionStatus.cs
- ToolboxItem.cs
- BitmapEffectDrawingContextWalker.cs
- dataprotectionpermission.cs
- DocumentReference.cs
- EntityContainerEmitter.cs
- CommonRemoteMemoryBlock.cs
- ItemDragEvent.cs
- GiveFeedbackEventArgs.cs
- CompiledRegexRunner.cs
- DataPagerField.cs
- UiaCoreApi.cs
- ResXResourceWriter.cs
- Array.cs
- StylusPlugInCollection.cs
- RunInstallerAttribute.cs
- MutexSecurity.cs
- PrePrepareMethodAttribute.cs
- DesignerCategoryAttribute.cs
- DataGrid.cs
- SmiContextFactory.cs
- GradientStop.cs
- DbMetaDataCollectionNames.cs
- Misc.cs
- XmlSchemaNotation.cs
- VersionValidator.cs
- DllNotFoundException.cs
- Conditional.cs
- PtsHelper.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ChtmlCommandAdapter.cs
- StylusOverProperty.cs
- IntranetCredentialPolicy.cs
- DbParameterCollection.cs
- StackSpiller.cs
- BamlTreeNode.cs
- ApplicationServiceManager.cs
- MarkerProperties.cs
- PathGeometry.cs
- GridViewEditEventArgs.cs
- Line.cs
- ModuleBuilder.cs
- iisPickupDirectory.cs
- SpinWait.cs
- ImageField.cs
- OutputCacheSettings.cs
- TrailingSpaceComparer.cs
- ZipIOLocalFileDataDescriptor.cs
- TypeElementCollection.cs