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
- AppliesToBehaviorDecisionTable.cs
- GridPattern.cs
- PeerContact.cs
- TextBoxBase.cs
- WebFaultException.cs
- SamlAuthenticationStatement.cs
- ReferenceSchema.cs
- FunctionImportMapping.cs
- FontResourceCache.cs
- TreeNodeMouseHoverEvent.cs
- Vector3DKeyFrameCollection.cs
- ServiceBusyException.cs
- CollectionBase.cs
- TableLayoutSettings.cs
- CodeAttributeArgumentCollection.cs
- ChannelCacheSettings.cs
- _IPv6Address.cs
- LayoutDump.cs
- JsonFormatReaderGenerator.cs
- AssemblyCollection.cs
- LogEntryHeaderv1Deserializer.cs
- PrintController.cs
- DragStartedEventArgs.cs
- ToolStripPanelCell.cs
- FocusManager.cs
- LinqDataSourceEditData.cs
- Effect.cs
- SqlUserDefinedTypeAttribute.cs
- TextDecorations.cs
- DomNameTable.cs
- Normalization.cs
- EnvelopedSignatureTransform.cs
- KeySpline.cs
- ListDataBindEventArgs.cs
- ReadContentAsBinaryHelper.cs
- GridViewUpdatedEventArgs.cs
- XmlDictionaryReader.cs
- PathSegmentCollection.cs
- HScrollBar.cs
- DecoratedNameAttribute.cs
- AnalyzedTree.cs
- MemberRelationshipService.cs
- SerializationInfo.cs
- ProgressiveCrcCalculatingStream.cs
- FloaterBaseParagraph.cs
- ColorBlend.cs
- EventTrigger.cs
- CollectionBuilder.cs
- KnownBoxes.cs
- ImageIndexConverter.cs
- mediaclock.cs
- ArrayList.cs
- MeshGeometry3D.cs
- ObjectParameter.cs
- CmsInterop.cs
- FileDialog_Vista_Interop.cs
- FileIOPermission.cs
- CacheSection.cs
- ContextConfiguration.cs
- HtmlEncodedRawTextWriter.cs
- DependentList.cs
- AVElementHelper.cs
- TemplateControlBuildProvider.cs
- UnmanagedMemoryStreamWrapper.cs
- SoundPlayerAction.cs
- IndentedWriter.cs
- EventItfInfo.cs
- objectquery_tresulttype.cs
- TextRange.cs
- KeyValueInternalCollection.cs
- ThemeDirectoryCompiler.cs
- ChannelManagerHelpers.cs
- ArraySortHelper.cs
- SqlCacheDependency.cs
- querybuilder.cs
- SecUtil.cs
- Policy.cs
- Propagator.cs
- Stylesheet.cs
- StandardOleMarshalObject.cs
- SettingsAttributeDictionary.cs
- LoadRetryAsyncResult.cs
- FactoryMaker.cs
- UnsafeNativeMethods.cs
- _NegotiateClient.cs
- SecurityTokenTypes.cs
- PropertyMap.cs
- WebConfigurationHost.cs
- Collection.cs
- UxThemeWrapper.cs
- CacheOutputQuery.cs
- tibetanshape.cs
- AlternateViewCollection.cs
- PeerEndPoint.cs
- AuthenticationModulesSection.cs
- DoubleLinkList.cs
- DomainUpDown.cs
- SecurityTokenTypes.cs
- ExceptionHelpers.cs
- QueueSurrogate.cs