Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Documents / DocumentStructures / StoryFragments.cs / 1 / StoryFragments.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // History: // 05/12/2005 : [....] - created. // // //--------------------------------------------------------------------------- using MS.Internal.Documents; using MS.Utility; using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Reflection; using System.Security.Permissions; using System.Windows.Controls.Primitives; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Shapes; using System.Windows.Markup; [assembly: XmlnsDefinition( "http://schemas.microsoft.com/xps/2005/06/documentstructure", "System.Windows.Documents.DocumentStructures")] namespace System.Windows.Documents.DocumentStructures { ////// /// public class StoryFragments : IAddChildInternal { ////// /// public StoryFragments() { _elementList = new List(); } void IAddChild.AddChild(object value) { // // Only the StoryFragment type are accepted. // if (value is StoryFragment) { _elementList.Add( (StoryFragment) value); return; } throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(StoryFragment)), "value"); } void IAddChild.AddText(string text) { } internal List StoryFragmentList { get { return _elementList; } } private List _elementList; } /// /// /// public class StoryFragment : IAddChildInternal { ////// /// public StoryFragment() { _elementList = new List(); } void IAddChild.AddChild(object value) { // // Only the following type are accepted. // Section|Paragraph|Inline(Bold|Italic|Underline)|Floater|Figure|List // |Table|StoryBreak // if (value is SectionStructure || value is ParagraphStructure || value is FigureStructure || value is ListStructure || value is TableStructure || value is StoryBreak) { _elementList.Add( (BlockElement) value); return; } throw new ArgumentException(SR.Get(SRID.DocumentStructureUnexpectedParameterType6, value.GetType(), typeof(SectionStructure), typeof(ParagraphStructure), typeof(FigureStructure), typeof(ListStructure), typeof(TableStructure), typeof(StoryBreak)), "value"); } void IAddChild.AddText(string text) { } /// /// The element name /// public string StoryName { get { return _storyName; } set { _storyName = value; } } ////// The element name /// public string FragmentName { get { return _fragmentName; } set { _fragmentName = value; } } ////// The element name /// public String FragmentType { get { return _fragmentType; } set { _fragmentType = value; } } internal ListBlockElementList { get { return _elementList; } } private List _elementList; private String _storyName; private String _fragmentName; private String _fragmentType; } } // 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
- XmlComplianceUtil.cs
- XmlHierarchyData.cs
- GenerateHelper.cs
- UrlUtility.cs
- LayeredChannelListener.cs
- OletxVolatileEnlistment.cs
- DirectoryInfo.cs
- SystemSounds.cs
- Clipboard.cs
- SqlIdentifier.cs
- CircleHotSpot.cs
- DownloadProgressEventArgs.cs
- OracleParameterCollection.cs
- Matrix3DConverter.cs
- XmlUtf8RawTextWriter.cs
- ResourcePermissionBase.cs
- webbrowsersite.cs
- HWStack.cs
- JavaScriptString.cs
- OutputCacheProfileCollection.cs
- Exceptions.cs
- Tile.cs
- ObjectQueryState.cs
- PermissionSetEnumerator.cs
- MessageSecurityOverTcpElement.cs
- GridViewRow.cs
- HttpMethodAttribute.cs
- DataGridViewSelectedCellCollection.cs
- SelectQueryOperator.cs
- SerializationUtility.cs
- InvalidOperationException.cs
- Timeline.cs
- DefaultEvaluationContext.cs
- RectIndependentAnimationStorage.cs
- UIElement3D.cs
- FrameSecurityDescriptor.cs
- WindowsMenu.cs
- AssociationTypeEmitter.cs
- Assert.cs
- SpeakCompletedEventArgs.cs
- PassportAuthenticationModule.cs
- HttpApplicationFactory.cs
- LocalClientSecuritySettings.cs
- PtsContext.cs
- EventEntry.cs
- BinaryFormatterWriter.cs
- BindingListCollectionView.cs
- ImageSource.cs
- NodeInfo.cs
- TemplateAction.cs
- OptimizedTemplateContent.cs
- IsolationInterop.cs
- GeometryDrawing.cs
- TableParaClient.cs
- ImageMap.cs
- SoapElementAttribute.cs
- MessageQueue.cs
- BindingListCollectionView.cs
- XmlElementElementCollection.cs
- followingsibling.cs
- Listbox.cs
- SqlMetaData.cs
- PhysicalFontFamily.cs
- ResizeGrip.cs
- AutoCompleteStringCollection.cs
- BamlTreeMap.cs
- DropShadowBitmapEffect.cs
- X509Chain.cs
- baseshape.cs
- StringPropertyBuilder.cs
- WeakEventTable.cs
- ElementAtQueryOperator.cs
- UserNameSecurityTokenProvider.cs
- BinaryQueryOperator.cs
- TransformCollection.cs
- METAHEADER.cs
- Control.cs
- RouteParameter.cs
- SystemColors.cs
- UnsafeNativeMethods.cs
- _ChunkParse.cs
- QueryResponse.cs
- PageHandlerFactory.cs
- SerializationInfoEnumerator.cs
- ImageDrawing.cs
- DbParameterCollectionHelper.cs
- IRCollection.cs
- Html32TextWriter.cs
- PeerTransportSecurityElement.cs
- ValueUnavailableException.cs
- TraceEventCache.cs
- XmlValidatingReaderImpl.cs
- OrderPreservingPipeliningMergeHelper.cs
- CharacterShapingProperties.cs
- ConstraintStruct.cs
- HashCodeCombiner.cs
- FilterQueryOptionExpression.cs
- ColumnReorderedEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- HwndAppCommandInputProvider.cs