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
- CultureSpecificCharacterBufferRange.cs
- WebPartsSection.cs
- TypeValidationEventArgs.cs
- HorizontalAlignConverter.cs
- BorderGapMaskConverter.cs
- LambdaCompiler.Generated.cs
- EntityDataSourceQueryBuilder.cs
- EditorBrowsableAttribute.cs
- XmlSchemas.cs
- TransformDescriptor.cs
- MenuEventArgs.cs
- LifetimeManager.cs
- DataErrorValidationRule.cs
- InplaceBitmapMetadataWriter.cs
- SessionState.cs
- RegionIterator.cs
- AdornerDecorator.cs
- HttpChannelHelpers.cs
- SpeechSeg.cs
- TogglePattern.cs
- WebConfigurationFileMap.cs
- FrameworkContentElement.cs
- Geometry3D.cs
- StringArrayConverter.cs
- PassportAuthenticationModule.cs
- EntityTypeEmitter.cs
- KnownAssemblyEntry.cs
- XmlSerializerFactory.cs
- SQLString.cs
- OptimizerPatterns.cs
- ToolboxItemFilterAttribute.cs
- CalculatedColumn.cs
- Int32AnimationBase.cs
- DataGridViewIntLinkedList.cs
- ContextMenu.cs
- ZipIOExtraFieldElement.cs
- DoubleAnimationBase.cs
- XmlSchemaExternal.cs
- Camera.cs
- WorkflowViewElement.cs
- PrimitiveDataContract.cs
- DragDrop.cs
- DataGridrowEditEndingEventArgs.cs
- WindowsHyperlink.cs
- Cloud.cs
- ScriptingProfileServiceSection.cs
- XmlNodeChangedEventManager.cs
- CardSpaceException.cs
- DrawingImage.cs
- CodeAttachEventStatement.cs
- HyperLinkColumn.cs
- ViewStateException.cs
- ReliableInputConnection.cs
- NumberAction.cs
- XmlNotation.cs
- CopyOfAction.cs
- SystemKeyConverter.cs
- MemberAccessException.cs
- InternalRelationshipCollection.cs
- DefaultValueTypeConverter.cs
- NumericUpDownAcceleration.cs
- DataGridItem.cs
- ThemeableAttribute.cs
- CssStyleCollection.cs
- InputLangChangeEvent.cs
- HtmlInputReset.cs
- Int32CollectionConverter.cs
- WebPartConnectionsDisconnectVerb.cs
- VectorAnimationUsingKeyFrames.cs
- DataSpaceManager.cs
- Int64.cs
- UInt16.cs
- DataFormats.cs
- GuidelineCollection.cs
- UIHelper.cs
- CompilationSection.cs
- InvalidCardException.cs
- MaterializeFromAtom.cs
- Selection.cs
- KeyFrames.cs
- DataGridViewHeaderCell.cs
- ModelFunctionTypeElement.cs
- InvalidEnumArgumentException.cs
- ReceiveActivityDesignerTheme.cs
- EncoderExceptionFallback.cs
- ProviderSettings.cs
- StylusPointDescription.cs
- DataBinding.cs
- SetterTriggerConditionValueConverter.cs
- DynamicField.cs
- ScriptControlDescriptor.cs
- Merger.cs
- XmlSiteMapProvider.cs
- ConfigurationErrorsException.cs
- RegexTypeEditor.cs
- ClientData.cs
- SkewTransform.cs
- NullExtension.cs
- elementinformation.cs
- ProfileInfo.cs