Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NativeActivityMetadata.cs
- ColumnHeader.cs
- ToolStripContentPanelRenderEventArgs.cs
- BackoffTimeoutHelper.cs
- EditorZoneBase.cs
- parserscommon.cs
- DataTemplate.cs
- FileRecordSequenceCompletedAsyncResult.cs
- BuildProviderAppliesToAttribute.cs
- GlyphTypeface.cs
- ColumnTypeConverter.cs
- DataSourceProvider.cs
- DurableTimerExtension.cs
- State.cs
- IndentTextWriter.cs
- RelationshipDetailsRow.cs
- TagPrefixCollection.cs
- WebPartCancelEventArgs.cs
- Parser.cs
- SequenceDesignerAccessibleObject.cs
- DataListCommandEventArgs.cs
- SrgsElementFactory.cs
- iisPickupDirectory.cs
- TreeNodeStyle.cs
- CalendarDataBindingHandler.cs
- storepermissionattribute.cs
- TableLayoutColumnStyleCollection.cs
- AutoResizedEvent.cs
- SafeNativeMethods.cs
- ObjectDataProvider.cs
- ButtonAutomationPeer.cs
- RotateTransform3D.cs
- BitSet.cs
- _TransmitFileOverlappedAsyncResult.cs
- DataViewManager.cs
- DecimalConstantAttribute.cs
- RequestSecurityToken.cs
- RIPEMD160.cs
- PersianCalendar.cs
- PathGeometry.cs
- XmlWrappingWriter.cs
- ApplicationDirectory.cs
- DataViewManager.cs
- FileInfo.cs
- OperationCanceledException.cs
- FileDialog_Vista_Interop.cs
- NavigationService.cs
- ConfigurationException.cs
- BamlRecordHelper.cs
- CodeStatement.cs
- DataSourceHelper.cs
- MobileListItemCollection.cs
- HttpCookie.cs
- KeyFrames.cs
- EncodingNLS.cs
- MenuItemCollection.cs
- CompatibleComparer.cs
- Function.cs
- ToolStripItem.cs
- SchemaTableColumn.cs
- SiteMapNodeCollection.cs
- WorkflowDefinitionContext.cs
- MainMenu.cs
- Crc32Helper.cs
- InProcStateClientManager.cs
- SchemaExporter.cs
- ValidationException.cs
- ColumnCollectionEditor.cs
- GeneralTransform3D.cs
- IOThreadScheduler.cs
- InternalMappingException.cs
- Misc.cs
- COMException.cs
- BrushProxy.cs
- FlowDocumentScrollViewer.cs
- PropertyToken.cs
- xsdvalidator.cs
- OdbcCommand.cs
- WizardPanelChangingEventArgs.cs
- TerminatorSinks.cs
- InputLangChangeRequestEvent.cs
- Error.cs
- LabelEditEvent.cs
- DeliveryRequirementsAttribute.cs
- SortableBindingList.cs
- Baml2006ReaderContext.cs
- SecurityPermission.cs
- TableAdapterManagerNameHandler.cs
- TabPanel.cs
- HttpModulesSection.cs
- PriorityBindingExpression.cs
- AsymmetricSecurityProtocol.cs
- TdsParameterSetter.cs
- XmlSchemaImporter.cs
- SessionStateItemCollection.cs
- DataSourceHelper.cs
- AlternateViewCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- XmlName.cs
- SqlConnectionPoolProviderInfo.cs