Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- CheckBoxRenderer.cs
- CompositeTypefaceMetrics.cs
- XsdBuildProvider.cs
- ServiceChannelFactory.cs
- DataGridPagerStyle.cs
- TimeSpanValidator.cs
- DbMetaDataColumnNames.cs
- WebScriptMetadataMessageEncoderFactory.cs
- SettingsPropertyIsReadOnlyException.cs
- EntityReference.cs
- ImageFormatConverter.cs
- PanelStyle.cs
- FixedTextView.cs
- JournalNavigationScope.cs
- ImmComposition.cs
- SpecularMaterial.cs
- CryptoProvider.cs
- LinkUtilities.cs
- ValueConversionAttribute.cs
- Automation.cs
- X509ChainPolicy.cs
- XmlEncoding.cs
- XsdDateTime.cs
- TimeZone.cs
- ClientSponsor.cs
- sqlstateclientmanager.cs
- TraceContextEventArgs.cs
- WindowsListBox.cs
- RectangleGeometry.cs
- SqlMetaData.cs
- ImageIndexConverter.cs
- CopyOfAction.cs
- TdsParser.cs
- ForceCopyBuildProvider.cs
- ToolStripPanelRenderEventArgs.cs
- XNodeNavigator.cs
- BitmapSourceSafeMILHandle.cs
- Inflater.cs
- XmlSchemaAnnotated.cs
- NativeRecognizer.cs
- ScrollChrome.cs
- LostFocusEventManager.cs
- RedistVersionInfo.cs
- HttpContextServiceHost.cs
- EntityReference.cs
- ReadWriteSpinLock.cs
- OutputCacheSettings.cs
- FormViewInsertedEventArgs.cs
- StringExpressionSet.cs
- BasicCellRelation.cs
- CrossSiteScriptingValidation.cs
- GifBitmapEncoder.cs
- ToolboxControl.cs
- BorderGapMaskConverter.cs
- Byte.cs
- LexicalChunk.cs
- MenuItem.cs
- StorageEntitySetMapping.cs
- RefreshPropertiesAttribute.cs
- SqlUDTStorage.cs
- EventSource.cs
- WorkflowViewService.cs
- WebPartEventArgs.cs
- ContractCodeDomInfo.cs
- WebHttpSecurityElement.cs
- SmtpSection.cs
- TdsParserSessionPool.cs
- CatalogPart.cs
- ColorAnimation.cs
- ScrollViewerAutomationPeer.cs
- OleServicesContext.cs
- FontResourceCache.cs
- ChildTable.cs
- OfTypeExpression.cs
- BoundColumn.cs
- XmlBinaryReaderSession.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- MemberMaps.cs
- Descriptor.cs
- GridViewRowPresenter.cs
- RegionIterator.cs
- AppDomainFactory.cs
- NativeMethods.cs
- CodeAccessSecurityEngine.cs
- Formatter.cs
- EventSource.cs
- CodeParameterDeclarationExpressionCollection.cs
- RtfControlWordInfo.cs
- EffectiveValueEntry.cs
- SplineQuaternionKeyFrame.cs
- BookmarkNameHelper.cs
- SHA1Cng.cs
- WhileDesigner.cs
- DataError.cs
- ModelTreeManager.cs
- PackagePart.cs
- StateManagedCollection.cs
- BinaryObjectWriter.cs
- WindowVisualStateTracker.cs
- MailAddressParser.cs