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
- XmlValidatingReader.cs
- EventNotify.cs
- RegexTree.cs
- Msec.cs
- ColumnWidthChangingEvent.cs
- ClientScriptManager.cs
- MasterPageBuildProvider.cs
- EpmCustomContentSerializer.cs
- TimelineClockCollection.cs
- ContentOperations.cs
- VisualStyleInformation.cs
- TextEditorMouse.cs
- SatelliteContractVersionAttribute.cs
- PlanCompilerUtil.cs
- DictionaryEntry.cs
- WriterOutput.cs
- DispatcherHooks.cs
- TableCell.cs
- NetworkInterface.cs
- ToolBarDesigner.cs
- KoreanCalendar.cs
- SafeNativeMethods.cs
- UTF8Encoding.cs
- DrawingContextWalker.cs
- BitmapEffectGroup.cs
- Win32KeyboardDevice.cs
- VisualTreeHelper.cs
- DocobjHost.cs
- KeyMatchBuilder.cs
- AdCreatedEventArgs.cs
- WebBrowserUriTypeConverter.cs
- DeclarativeCatalogPartDesigner.cs
- CharacterHit.cs
- DataError.cs
- GraphicsContext.cs
- ThicknessAnimationUsingKeyFrames.cs
- KeyConverter.cs
- WindowsScrollBar.cs
- FormParameter.cs
- ButtonBase.cs
- XpsTokenContext.cs
- Authorization.cs
- TdsValueSetter.cs
- MediaSystem.cs
- WebPartMinimizeVerb.cs
- DbParameterCollectionHelper.cs
- AspNetCompatibilityRequirementsAttribute.cs
- FontFamily.cs
- ValidatorCompatibilityHelper.cs
- ExpressionBinding.cs
- DBDataPermission.cs
- TypeBuilderInstantiation.cs
- EditorZoneBase.cs
- ExtendedPropertyInfo.cs
- UrlParameterWriter.cs
- OleDbInfoMessageEvent.cs
- IdentitySection.cs
- ChannelServices.cs
- TrustManagerMoreInformation.cs
- UnicastIPAddressInformationCollection.cs
- ConstraintManager.cs
- RewritingValidator.cs
- SoapServerProtocol.cs
- OracleConnection.cs
- DependencyPropertyAttribute.cs
- TreeNodeConverter.cs
- TailCallAnalyzer.cs
- Transform3DGroup.cs
- ObfuscationAttribute.cs
- ParserExtension.cs
- RowUpdatedEventArgs.cs
- MenuItemBindingCollection.cs
- DataContractAttribute.cs
- ImageMap.cs
- NaturalLanguageHyphenator.cs
- SecurityUtils.cs
- OdbcStatementHandle.cs
- XmlSerializerSection.cs
- SiblingIterators.cs
- ReaderWriterLock.cs
- WebSysDefaultValueAttribute.cs
- WebPartCancelEventArgs.cs
- TrustLevel.cs
- SafeNativeMethods.cs
- StronglyTypedResourceBuilder.cs
- nulltextcontainer.cs
- DocumentViewerHelper.cs
- PropertyGridView.cs
- DiagnosticsConfigurationHandler.cs
- BamlBinaryReader.cs
- SelectingProviderEventArgs.cs
- ChangeConflicts.cs
- RecognitionEventArgs.cs
- SupportingTokenProviderSpecification.cs
- NotFiniteNumberException.cs
- HtmlTableCell.cs
- COM2PictureConverter.cs
- ManualResetEventSlim.cs
- DES.cs
- TransactionCache.cs