Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / PathSegmentCollection.cs / 1 / PathSegmentCollection.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // //--------------------------------------------------------------------------- using MS.Internal; using MS.Internal.PresentationCore; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.ComponentModel.Design.Serialization; using System.Text; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Markup; namespace System.Windows.Media { ////// The class definition for PathSegmentCollection /// [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] public sealed partial class PathSegmentCollection : Animatable, IList, IList{ /// /// Can serialze "this" to a string. /// This is true iff every segment is stroked. /// internal bool CanSerializeToString() { bool canSerialize = true; for (int i=0; i<_collection.Count; i++) { if (!_collection[i].IsStroked) { canSerialize = false; break; } } return canSerialize; } ////// Creates a string representation of this object based on the format string /// and IFormatProvider passed in. /// If the provider is null, the CurrentCulture is used. /// See the documentation for IFormattable for more information. /// ////// A string representation of this object. /// internal string ConvertToString(string format, IFormatProvider provider) { if (_collection.Count == 0) { return String.Empty; } StringBuilder str = new StringBuilder(); char separator = MS.Internal.TokenizerHelper.GetNumericListSeparator(provider); for (int i=0; i<_collection.Count; i++) { str.Append(_collection[i].ConvertToString(format, provider)); } return str.ToString(); } } } // 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. // // //--------------------------------------------------------------------------- using MS.Internal; using MS.Internal.PresentationCore; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.ComponentModel.Design.Serialization; using System.Text; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Markup; namespace System.Windows.Media { ////// The class definition for PathSegmentCollection /// [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] public sealed partial class PathSegmentCollection : Animatable, IList, IList{ /// /// Can serialze "this" to a string. /// This is true iff every segment is stroked. /// internal bool CanSerializeToString() { bool canSerialize = true; for (int i=0; i<_collection.Count; i++) { if (!_collection[i].IsStroked) { canSerialize = false; break; } } return canSerialize; } ////// Creates a string representation of this object based on the format string /// and IFormatProvider passed in. /// If the provider is null, the CurrentCulture is used. /// See the documentation for IFormattable for more information. /// ////// A string representation of this object. /// internal string ConvertToString(string format, IFormatProvider provider) { if (_collection.Count == 0) { return String.Empty; } StringBuilder str = new StringBuilder(); char separator = MS.Internal.TokenizerHelper.GetNumericListSeparator(provider); for (int i=0; i<_collection.Count; i++) { str.Append(_collection[i].ConvertToString(format, provider)); } return str.ToString(); } } } // 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
- DataRelationPropertyDescriptor.cs
- MexHttpsBindingCollectionElement.cs
- PersonalizationState.cs
- EncodingInfo.cs
- OleDbException.cs
- DummyDataSource.cs
- SerializationObjectManager.cs
- EdgeProfileValidation.cs
- DataSourceView.cs
- WebChannelFactory.cs
- TableCellCollection.cs
- HtmlUtf8RawTextWriter.cs
- DataBindingHandlerAttribute.cs
- sqlpipe.cs
- HelloMessageApril2005.cs
- SafeRegistryKey.cs
- ListItemCollection.cs
- XmlReaderDelegator.cs
- WebColorConverter.cs
- ObjectItemCollection.cs
- BitmapEffectGeneralTransform.cs
- TextRangeAdaptor.cs
- ChangeNode.cs
- GenericUriParser.cs
- LogConverter.cs
- Utils.cs
- TextCollapsingProperties.cs
- CurrencyManager.cs
- DataRecord.cs
- IndentTextWriter.cs
- ConcurrentQueue.cs
- MouseOverProperty.cs
- TdsEnums.cs
- TcpConnectionPool.cs
- SequenceDesignerAccessibleObject.cs
- ToolboxSnapDragDropEventArgs.cs
- FramingChannels.cs
- XamlUtilities.cs
- StorageScalarPropertyMapping.cs
- DataRow.cs
- UdpSocketReceiveManager.cs
- DeflateInput.cs
- WebServiceEnumData.cs
- prompt.cs
- ProjectionCamera.cs
- TextCompositionManager.cs
- UnsignedPublishLicense.cs
- ActionFrame.cs
- KnownTypes.cs
- Error.cs
- DescendentsWalkerBase.cs
- ControlCommandSet.cs
- OletxCommittableTransaction.cs
- AbstractDataSvcMapFileLoader.cs
- Transactions.cs
- DependencyPropertyAttribute.cs
- ControllableStoryboardAction.cs
- NullToBooleanConverter.cs
- HtmlInputPassword.cs
- TemplateLookupAction.cs
- CatalogPart.cs
- MulticastOption.cs
- InvokeMethodActivityDesigner.cs
- SimpleHandlerFactory.cs
- ColorDialog.cs
- GestureRecognitionResult.cs
- OpenFileDialog.cs
- DesignTimeTemplateParser.cs
- DocumentViewerHelper.cs
- PerformanceCounterCategory.cs
- StrictAndMessageFilter.cs
- ReliabilityContractAttribute.cs
- WmpBitmapDecoder.cs
- WindowPattern.cs
- InkCollectionBehavior.cs
- Mappings.cs
- ThreadTrace.cs
- XmlLangPropertyAttribute.cs
- TemplatingOptionsDialog.cs
- BinaryParser.cs
- TextContainerChangedEventArgs.cs
- CompilerTypeWithParams.cs
- WorkflowEventArgs.cs
- HTTPNotFoundHandler.cs
- AsymmetricSecurityProtocolFactory.cs
- RoleManagerEventArgs.cs
- LocatorPartList.cs
- AdjustableArrowCap.cs
- RangeValuePatternIdentifiers.cs
- CodeNamespaceImport.cs
- CustomErrorsSection.cs
- XmlValidatingReaderImpl.cs
- MetadataFile.cs
- ContainerTracking.cs
- HtmlInputFile.cs
- InvalidPipelineStoreException.cs
- StandardCommands.cs
- Metadata.cs
- GradientStopCollection.cs
- XmlWriterTraceListener.cs