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
- InOutArgument.cs
- SiteMapDataSource.cs
- _NativeSSPI.cs
- SlipBehavior.cs
- Nodes.cs
- ResourceCategoryAttribute.cs
- EntityChangedParams.cs
- DelayedRegex.cs
- XmlCharCheckingWriter.cs
- InternalsVisibleToAttribute.cs
- InkPresenterAutomationPeer.cs
- UrlMappingsSection.cs
- XmlReaderSettings.cs
- FrameworkContentElement.cs
- XmlWriterSettings.cs
- HMACSHA256.cs
- PrintingPermissionAttribute.cs
- PartialTrustHelpers.cs
- ConnectionPointCookie.cs
- XmlSchemaExporter.cs
- WebPartConnectionsConnectVerb.cs
- ProviderConnectionPointCollection.cs
- SmtpAuthenticationManager.cs
- OdbcException.cs
- PropertyItemInternal.cs
- FormParameter.cs
- SortQuery.cs
- FillRuleValidation.cs
- AdCreatedEventArgs.cs
- XhtmlConformanceSection.cs
- PreProcessInputEventArgs.cs
- StaticExtension.cs
- TouchDevice.cs
- SafeProcessHandle.cs
- NativeMethods.cs
- BamlResourceDeserializer.cs
- AdministrationHelpers.cs
- XmlTextReaderImpl.cs
- MetadataPropertyAttribute.cs
- Size3DValueSerializer.cs
- ProgressBarRenderer.cs
- GrammarBuilderRuleRef.cs
- DependencyObject.cs
- PolyLineSegmentFigureLogic.cs
- CodeRegionDirective.cs
- InvalidPrinterException.cs
- TextFindEngine.cs
- Monitor.cs
- RowCache.cs
- ConfigurationValidatorAttribute.cs
- DES.cs
- UriPrefixTable.cs
- ToolStripLocationCancelEventArgs.cs
- ExpressionEditorAttribute.cs
- FrameworkReadOnlyPropertyMetadata.cs
- DependencyObjectValidator.cs
- LinkDescriptor.cs
- Utility.cs
- GenericNameHandler.cs
- ApplicationFileCodeDomTreeGenerator.cs
- WindowsScrollBarBits.cs
- ObjectAnimationBase.cs
- InternalPolicyElement.cs
- TransformProviderWrapper.cs
- AutomationPeer.cs
- PageThemeParser.cs
- DecoderFallback.cs
- Highlights.cs
- CorePropertiesFilter.cs
- HttpVersion.cs
- unsafenativemethodstextservices.cs
- DynamicArgumentDesigner.xaml.cs
- MultipleViewPatternIdentifiers.cs
- EmptyCollection.cs
- IPGlobalProperties.cs
- FileDialog.cs
- BCryptHashAlgorithm.cs
- SafePEFileHandle.cs
- CommonObjectSecurity.cs
- XmlWrappingWriter.cs
- RawAppCommandInputReport.cs
- EventItfInfo.cs
- ReadOnlyCollectionBuilder.cs
- FileLevelControlBuilderAttribute.cs
- Visual3D.cs
- PagedDataSource.cs
- BooleanSwitch.cs
- ManagementBaseObject.cs
- RSAOAEPKeyExchangeFormatter.cs
- ObjectSelectorEditor.cs
- ParallelTimeline.cs
- SspiHelper.cs
- DateTimeConverter.cs
- SqlBulkCopyColumnMapping.cs
- EmptyStringExpandableObjectConverter.cs
- QilInvokeLateBound.cs
- UiaCoreApi.cs
- GroupItem.cs
- ClientFormsIdentity.cs
- SQLInt64Storage.cs