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
- ValidatingPropertiesEventArgs.cs
- StatusBar.cs
- DataListItemCollection.cs
- DBSqlParserTableCollection.cs
- ControlPropertyNameConverter.cs
- FixedPageStructure.cs
- ColorAnimation.cs
- DetailsViewInsertEventArgs.cs
- OletxTransactionHeader.cs
- ListBoxItemAutomationPeer.cs
- PointHitTestResult.cs
- oledbmetadatacollectionnames.cs
- NameSpaceExtractor.cs
- RegistryKey.cs
- HttpValueCollection.cs
- SafeRightsManagementEnvironmentHandle.cs
- AdapterUtil.cs
- CombinedGeometry.cs
- Shape.cs
- EraserBehavior.cs
- BinaryParser.cs
- GenerateHelper.cs
- UnauthorizedWebPart.cs
- BamlMapTable.cs
- ServiceRoute.cs
- SqlRowUpdatingEvent.cs
- ReceiveErrorHandling.cs
- AnimationLayer.cs
- AssociationSetEnd.cs
- XmlWrappingWriter.cs
- WindowsListViewSubItem.cs
- input.cs
- TextProperties.cs
- ScriptReference.cs
- BulletChrome.cs
- WebScriptServiceHostFactory.cs
- SharedStream.cs
- ProgressBarBrushConverter.cs
- IDispatchConstantAttribute.cs
- DeploymentSection.cs
- FrameworkContentElement.cs
- SqlDependency.cs
- SimpleParser.cs
- datacache.cs
- StringDictionary.cs
- SmiMetaDataProperty.cs
- IxmlLineInfo.cs
- ResourceContainer.cs
- UpdateEventArgs.cs
- LocalizabilityAttribute.cs
- XmlException.cs
- ControlBindingsCollection.cs
- Int32Rect.cs
- RowToFieldTransformer.cs
- GestureRecognitionResult.cs
- DrawingContextWalker.cs
- MimeMapping.cs
- TextTreeInsertElementUndoUnit.cs
- ValueChangedEventManager.cs
- KeyPullup.cs
- UidPropertyAttribute.cs
- PermissionRequestEvidence.cs
- httpstaticobjectscollection.cs
- ProcessStartInfo.cs
- ProtocolViolationException.cs
- XmlTextReaderImpl.cs
- ReadOnlyCollection.cs
- EventLogPermissionAttribute.cs
- CurrentTimeZone.cs
- httpapplicationstate.cs
- SettingsBase.cs
- FullTextBreakpoint.cs
- COM2Enum.cs
- GridViewColumnCollection.cs
- OrthographicCamera.cs
- ValueSerializerAttribute.cs
- QilInvokeLateBound.cs
- ChannelTokenTypeConverter.cs
- DynamicDiscoveryDocument.cs
- EntityCommandCompilationException.cs
- XmlReflectionMember.cs
- AppDomainManager.cs
- BasicKeyConstraint.cs
- TypeElementCollection.cs
- MultitargetUtil.cs
- CapiSafeHandles.cs
- RepeaterCommandEventArgs.cs
- CommonProperties.cs
- ProcessModule.cs
- EncoderReplacementFallback.cs
- PtsCache.cs
- WebFaultClientMessageInspector.cs
- ServerReliableChannelBinder.cs
- SizeChangedInfo.cs
- FlowDecisionLabelFeature.cs
- XmlSchemaGroupRef.cs
- StandardCommandToolStripMenuItem.cs
- SqlConnectionHelper.cs
- StringReader.cs
- TriState.cs