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
- HttpCapabilitiesEvaluator.cs
- FlowLayoutPanel.cs
- SmtpTransport.cs
- EntityDataSourceMemberPath.cs
- WebControlsSection.cs
- SoapConverter.cs
- OracleBFile.cs
- ClickablePoint.cs
- AppDomain.cs
- DeferredSelectedIndexReference.cs
- ConnectionsZone.cs
- FontUnitConverter.cs
- NetworkInformationPermission.cs
- TimeSpanValidatorAttribute.cs
- RpcCryptoRequest.cs
- RankException.cs
- AQNBuilder.cs
- PagesChangedEventArgs.cs
- ScriptingRoleServiceSection.cs
- File.cs
- VisualBrush.cs
- ISessionStateStore.cs
- LinqDataSourceContextEventArgs.cs
- HierarchicalDataTemplate.cs
- CodeLabeledStatement.cs
- TemplateKeyConverter.cs
- MbpInfo.cs
- ManagedWndProcTracker.cs
- XamlGridLengthSerializer.cs
- PeerService.cs
- CustomErrorCollection.cs
- BufferedWebEventProvider.cs
- ECDiffieHellman.cs
- ConfigXmlSignificantWhitespace.cs
- EllipseGeometry.cs
- XmlRootAttribute.cs
- ScrollableControl.cs
- DetailsViewUpdatedEventArgs.cs
- StringUtil.cs
- PropertyDescriptorGridEntry.cs
- ChannelManagerHelpers.cs
- Query.cs
- EntitySqlQueryCacheKey.cs
- UIntPtr.cs
- SqlDataSourceCommandEventArgs.cs
- DataGridViewImageCell.cs
- AddInIpcChannel.cs
- MonthChangedEventArgs.cs
- KeyBinding.cs
- ScriptingProfileServiceSection.cs
- SourceChangedEventArgs.cs
- XmlIgnoreAttribute.cs
- PeerCollaboration.cs
- ZoneMembershipCondition.cs
- SqlHelper.cs
- RequiredFieldValidator.cs
- BitmapMetadataBlob.cs
- SymbolUsageManager.cs
- ToolboxItemAttribute.cs
- TableLayoutColumnStyleCollection.cs
- SecurityTokenAttachmentMode.cs
- RepeatInfo.cs
- ReflectionPermission.cs
- ScrollBarAutomationPeer.cs
- ProtocolsConfigurationEntry.cs
- TemplateControlParser.cs
- ComponentCollection.cs
- ExpressionBinding.cs
- Clock.cs
- SecureConversationServiceCredential.cs
- SettingsProperty.cs
- SoapReflectionImporter.cs
- SQLSingle.cs
- AuthenticateEventArgs.cs
- IisHelper.cs
- _ChunkParse.cs
- Light.cs
- RuntimeConfigurationRecord.cs
- DoubleUtil.cs
- CompiledQuery.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ConsoleKeyInfo.cs
- CurrentTimeZone.cs
- XmlWellformedWriter.cs
- tibetanshape.cs
- control.ime.cs
- XMLSyntaxException.cs
- RuleRefElement.cs
- httpapplicationstate.cs
- GridViewPageEventArgs.cs
- CqlLexer.cs
- SrgsItemList.cs
- XomlCompiler.cs
- Baml2006ReaderFrame.cs
- DataSetUtil.cs
- TransactionScopeDesigner.cs
- DecimalConverter.cs
- SqlCommandBuilder.cs
- ScriptReferenceEventArgs.cs
- SecurityTokenException.cs