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
- ExternalException.cs
- FormClosingEvent.cs
- RegexGroupCollection.cs
- ColorConverter.cs
- DatagridviewDisplayedBandsData.cs
- EpmTargetTree.cs
- EpmContentDeSerializer.cs
- DetailsViewRowCollection.cs
- RouteTable.cs
- RegistryKey.cs
- SplitterCancelEvent.cs
- DataGridViewColumnStateChangedEventArgs.cs
- IsolatedStorage.cs
- UxThemeWrapper.cs
- ExtensibleSyndicationObject.cs
- Grid.cs
- RequiredFieldValidator.cs
- ExpandedWrapper.cs
- UndirectedGraph.cs
- WebPartCollection.cs
- PeerChannelListener.cs
- MimeMapping.cs
- ListQueryResults.cs
- SqlRowUpdatedEvent.cs
- Validator.cs
- Cloud.cs
- AnonymousIdentificationSection.cs
- PerformanceCounterPermissionEntryCollection.cs
- documentation.cs
- JpegBitmapDecoder.cs
- DataColumn.cs
- EditorBrowsableAttribute.cs
- DtcInterfaces.cs
- NotifyParentPropertyAttribute.cs
- BindStream.cs
- RectangleHotSpot.cs
- TemplateControlParser.cs
- Stack.cs
- CatalogZoneDesigner.cs
- HMACSHA256.cs
- BamlLocalizationDictionary.cs
- XmlSchemaGroup.cs
- XsdCachingReader.cs
- OracleNumber.cs
- SafeCoTaskMem.cs
- ArgIterator.cs
- WebSysDefaultValueAttribute.cs
- CodeArrayCreateExpression.cs
- CrossAppDomainChannel.cs
- Stack.cs
- PointAnimation.cs
- BinaryOperationBinder.cs
- RemotingAttributes.cs
- DataBoundControlAdapter.cs
- DiscardableAttribute.cs
- SafeLocalMemHandle.cs
- MouseButton.cs
- HttpDigestClientCredential.cs
- WindowsSlider.cs
- PageParserFilter.cs
- SortFieldComparer.cs
- FlowDocumentScrollViewer.cs
- ProtocolsConfigurationHandler.cs
- iisPickupDirectory.cs
- GeneralTransform3DTo2DTo3D.cs
- Int16AnimationUsingKeyFrames.cs
- XpsFilter.cs
- NamespaceInfo.cs
- PersonalizationDictionary.cs
- Matrix3DValueSerializer.cs
- DataError.cs
- BoolLiteral.cs
- SamlAuthorizationDecisionClaimResource.cs
- StoragePropertyMapping.cs
- Trigger.cs
- CodeDirectiveCollection.cs
- precedingquery.cs
- FixedLineResult.cs
- Selection.cs
- SqlParameterizer.cs
- DistinctQueryOperator.cs
- NavigationWindowAutomationPeer.cs
- DisplayNameAttribute.cs
- CapabilitiesRule.cs
- WebUtil.cs
- DefaultHttpHandler.cs
- AttributeQuery.cs
- PeerInvitationResponse.cs
- Deserializer.cs
- TimeManager.cs
- GestureRecognizer.cs
- SchemaImporterExtension.cs
- XmlSchemaCompilationSettings.cs
- OdbcInfoMessageEvent.cs
- TransferMode.cs
- DataColumnCollection.cs
- CapabilitiesState.cs
- ProxyWebPartManager.cs
- ToolbarAUtomationPeer.cs
- RbTree.cs