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
- ExtentKey.cs
- StringPropertyBuilder.cs
- WithStatement.cs
- Comparer.cs
- InternalsVisibleToAttribute.cs
- DeriveBytes.cs
- ipaddressinformationcollection.cs
- XmlReflectionImporter.cs
- TextSelectionHighlightLayer.cs
- MatrixTransform.cs
- OpenFileDialog.cs
- ToolStripSettings.cs
- StrokeNodeOperations2.cs
- MsmqOutputSessionChannel.cs
- ButtonFieldBase.cs
- NavigationProperty.cs
- HtmlImageAdapter.cs
- AssociationEndMember.cs
- TextRangeEdit.cs
- StylusPoint.cs
- CommonEndpointBehaviorElement.cs
- Classification.cs
- Cursor.cs
- Rect.cs
- documentsequencetextpointer.cs
- SoapInteropTypes.cs
- COM2Enum.cs
- HtmlUtf8RawTextWriter.cs
- Console.cs
- FormViewDeletedEventArgs.cs
- BasicViewGenerator.cs
- ResourceReferenceKeyNotFoundException.cs
- ReceiveDesigner.xaml.cs
- HostProtectionPermission.cs
- Select.cs
- DashStyles.cs
- ListChangedEventArgs.cs
- MemoryMappedFileSecurity.cs
- ToolStripSplitStackLayout.cs
- MasterPageParser.cs
- cache.cs
- ExportOptions.cs
- BindingExpressionBase.cs
- Type.cs
- DateTimeValueSerializer.cs
- _DigestClient.cs
- recordstatescratchpad.cs
- SHA256Cng.cs
- SynchronizationContext.cs
- DeferredElementTreeState.cs
- XmlDataSourceView.cs
- XmlSigningNodeWriter.cs
- AssemblyCollection.cs
- FtpCachePolicyElement.cs
- GAC.cs
- FormViewDeletedEventArgs.cs
- MissingMemberException.cs
- WinEventQueueItem.cs
- xmlsaver.cs
- LockRecoveryTask.cs
- WebPartEditorCancelVerb.cs
- RecommendedAsConfigurableAttribute.cs
- EventProperty.cs
- EventlogProvider.cs
- WSHttpBindingBase.cs
- CheckBox.cs
- PersistencePipeline.cs
- ColumnTypeConverter.cs
- RegionInfo.cs
- Condition.cs
- IntPtr.cs
- InOutArgument.cs
- DictionarySectionHandler.cs
- SafeRightsManagementSessionHandle.cs
- XPathExpr.cs
- ToolStripOverflowButton.cs
- TableLayoutStyleCollection.cs
- InitializationEventAttribute.cs
- ChangeProcessor.cs
- RelatedView.cs
- CompilationPass2Task.cs
- EntityContainerEmitter.cs
- TypeInitializationException.cs
- CompModSwitches.cs
- DataGridViewLinkColumn.cs
- GreenMethods.cs
- SingleAnimationUsingKeyFrames.cs
- _FtpDataStream.cs
- ToolStripTextBox.cs
- CorrelationExtension.cs
- DataGridViewColumnEventArgs.cs
- DrawingContext.cs
- DocumentViewerBaseAutomationPeer.cs
- StackOverflowException.cs
- BaseValidator.cs
- HtmlButton.cs
- PingReply.cs
- DependencyPropertyConverter.cs
- RoleGroupCollection.cs
- XmlSchemaComplexType.cs