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
- CompilerScopeManager.cs
- ByteAnimation.cs
- FlowDocumentScrollViewer.cs
- MembershipUser.cs
- ComplexBindingPropertiesAttribute.cs
- MobileComponentEditorPage.cs
- IndentedWriter.cs
- ErrorFormatter.cs
- TableLayoutStyleCollection.cs
- X509ChainPolicy.cs
- XmlStreamStore.cs
- ResourceDescriptionAttribute.cs
- DelegatedStream.cs
- Page.cs
- ScriptingScriptResourceHandlerSection.cs
- RoutedEventArgs.cs
- DetailsViewInsertEventArgs.cs
- SingleSelectRootGridEntry.cs
- UnwrappedTypesXmlSerializerManager.cs
- ContactManager.cs
- RankException.cs
- DefaultBinder.cs
- QueryExecutionOption.cs
- DesignUtil.cs
- HwndSourceKeyboardInputSite.cs
- BmpBitmapDecoder.cs
- WCFModelStrings.Designer.cs
- IgnoreFlushAndCloseStream.cs
- StaticDataManager.cs
- StringInfo.cs
- HtmlPageAdapter.cs
- SchemaLookupTable.cs
- LoginName.cs
- CompileLiteralTextParser.cs
- ToolStripScrollButton.cs
- ImpersonateTokenRef.cs
- ValidationErrorCollection.cs
- AddInSegmentDirectoryNotFoundException.cs
- HMACSHA256.cs
- WindowsFont.cs
- MailAddress.cs
- AutomationElementCollection.cs
- DataGridViewRowPostPaintEventArgs.cs
- DelayedRegex.cs
- TemplateControlCodeDomTreeGenerator.cs
- RotateTransform.cs
- CommonProperties.cs
- securitymgrsite.cs
- FixedTextView.cs
- ListViewTableRow.cs
- XDeferredAxisSource.cs
- LockedActivityGlyph.cs
- CodeAccessPermission.cs
- DayRenderEvent.cs
- GenericsInstances.cs
- ControlUtil.cs
- If.cs
- CompiledAction.cs
- WorkerRequest.cs
- DispatcherExceptionFilterEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- VarRefManager.cs
- TraceProvider.cs
- GridViewRow.cs
- MediaElementAutomationPeer.cs
- CompatibleIComparer.cs
- LinqDataSourceUpdateEventArgs.cs
- DocumentOrderComparer.cs
- SystemColorTracker.cs
- IOException.cs
- FactoryGenerator.cs
- SqlTriggerAttribute.cs
- StateBag.cs
- BufferedReceiveManager.cs
- ResourceKey.cs
- PropertyRecord.cs
- SignatureSummaryDialog.cs
- RelationshipSet.cs
- SqlDataRecord.cs
- Model3DGroup.cs
- DesignerLabelAdapter.cs
- EventProxy.cs
- ASCIIEncoding.cs
- SmtpException.cs
- Dynamic.cs
- AstNode.cs
- SEHException.cs
- FloaterBaseParaClient.cs
- OracleException.cs
- PartManifestEntry.cs
- ArrayWithOffset.cs
- OdbcErrorCollection.cs
- PathFigure.cs
- SamlDoNotCacheCondition.cs
- SqlTopReducer.cs
- FileVersion.cs
- Transaction.cs
- SelectionPatternIdentifiers.cs
- SapiRecoContext.cs
- OleCmdHelper.cs