Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Documents / DocumentStructures / StoryFragments.cs / 1 / StoryFragments.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // History: // 05/12/2005 : mingliu - 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. //---------------------------------------------------------------------------- // // // Copyright (C) Microsoft Corporation. All rights reserved. // // // History: // 05/12/2005 : mingliu - 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
- Tile.cs
- AutomationPropertyInfo.cs
- ElementAction.cs
- RSAPKCS1SignatureDeformatter.cs
- DataGridViewDataErrorEventArgs.cs
- WebPartVerbCollection.cs
- FileDialogCustomPlacesCollection.cs
- ErrorTableItemStyle.cs
- Funcletizer.cs
- RelationshipNavigation.cs
- ColumnWidthChangingEvent.cs
- MexHttpsBindingCollectionElement.cs
- MetadataSerializer.cs
- safelink.cs
- FunctionDescription.cs
- Baml2006KnownTypes.cs
- DictionaryManager.cs
- QilBinary.cs
- DmlSqlGenerator.cs
- Operators.cs
- Message.cs
- GridViewRowEventArgs.cs
- XMLSchema.cs
- HtmlElement.cs
- RepeaterItemCollection.cs
- WebPartEditorApplyVerb.cs
- DesignerTransactionCloseEvent.cs
- DataGridViewTextBoxCell.cs
- DbExpressionVisitor.cs
- MethodCallTranslator.cs
- MimeTypeAttribute.cs
- FrameworkElementFactory.cs
- XmlWriterTraceListener.cs
- PageParserFilter.cs
- ListBindableAttribute.cs
- OrderedEnumerableRowCollection.cs
- ExpressionContext.cs
- ActiveDocumentEvent.cs
- EventPropertyMap.cs
- FacetValues.cs
- AddInIpcChannel.cs
- HighlightComponent.cs
- ReadWriteSpinLock.cs
- SchemaMapping.cs
- MinimizableAttributeTypeConverter.cs
- BitmapMetadataBlob.cs
- SafeNativeMethods.cs
- TabletCollection.cs
- ElementsClipboardData.cs
- RawMouseInputReport.cs
- AssemblyResolver.cs
- DbSetClause.cs
- WorkflowPageSetupDialog.cs
- QueryOperationResponseOfT.cs
- RefreshPropertiesAttribute.cs
- SimpleFileLog.cs
- RelationshipManager.cs
- TextTreeDeleteContentUndoUnit.cs
- XmlSchemaComplexContent.cs
- SystemResources.cs
- basevalidator.cs
- JoinTreeNode.cs
- InkCanvasInnerCanvas.cs
- XmlStreamStore.cs
- FormatterServices.cs
- Substitution.cs
- ThreadStaticAttribute.cs
- MultilineStringConverter.cs
- SimpleHandlerBuildProvider.cs
- IncomingWebRequestContext.cs
- BulletedListDesigner.cs
- ConfigXmlCDataSection.cs
- SynchronousChannel.cs
- KerberosSecurityTokenProvider.cs
- SqlIdentifier.cs
- ObjectViewEntityCollectionData.cs
- login.cs
- XmlQueryOutput.cs
- LinkClickEvent.cs
- Rect3D.cs
- EdmTypeAttribute.cs
- WindowsUpDown.cs
- ChangesetResponse.cs
- Condition.cs
- ContextStack.cs
- Single.cs
- WebReferencesBuildProvider.cs
- File.cs
- Math.cs
- TabRenderer.cs
- DetailsViewDesigner.cs
- SqlUdtInfo.cs
- ModelServiceImpl.cs
- SizeChangedInfo.cs
- VariableQuery.cs
- TabRenderer.cs
- FileEnumerator.cs
- ValidationSummary.cs
- QueueTransferProtocol.cs
- TimeoutValidationAttribute.cs