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
- TableLayoutPanelCodeDomSerializer.cs
- RemotingException.cs
- IncrementalHitTester.cs
- ApplicationServicesHostFactory.cs
- WizardSideBarListControlItemEventArgs.cs
- EventData.cs
- IgnoreFileBuildProvider.cs
- NaturalLanguageHyphenator.cs
- ModuleBuilder.cs
- AnnotationResourceChangedEventArgs.cs
- TextTreeUndoUnit.cs
- OrderedDictionaryStateHelper.cs
- TrustLevelCollection.cs
- ListView.cs
- SoapExtensionStream.cs
- DetailsViewActionList.cs
- SQLConvert.cs
- ExpressionBuilderContext.cs
- SqlRemoveConstantOrderBy.cs
- DrawingState.cs
- EDesignUtil.cs
- SerializerProvider.cs
- LingerOption.cs
- RemotingSurrogateSelector.cs
- MessageEventSubscriptionService.cs
- TraceSource.cs
- PartitionedDataSource.cs
- DesignerAdapterAttribute.cs
- PixelFormat.cs
- ContentControl.cs
- WindowsListViewItem.cs
- SessionSwitchEventArgs.cs
- DirectionalLight.cs
- TdsParserSafeHandles.cs
- CaseInsensitiveComparer.cs
- AppliedDeviceFiltersDialog.cs
- MonthChangedEventArgs.cs
- FormViewDeletedEventArgs.cs
- BinaryFormatter.cs
- TextServicesCompartment.cs
- XmlnsDictionary.cs
- HighlightComponent.cs
- SpotLight.cs
- DoubleUtil.cs
- QueryableDataSourceView.cs
- StateWorkerRequest.cs
- BackgroundWorker.cs
- TranslateTransform3D.cs
- StrongNameSignatureInformation.cs
- RootBrowserWindowAutomationPeer.cs
- sqlser.cs
- parserscommon.cs
- DependencyObjectType.cs
- SimpleApplicationHost.cs
- SimpleHandlerFactory.cs
- PageAsyncTask.cs
- TreeNode.cs
- DataViewManager.cs
- FragmentQuery.cs
- ResourceLoader.cs
- ReflectionUtil.cs
- ModelPropertyCollectionImpl.cs
- DBConnection.cs
- CommonServiceBehaviorElement.cs
- PolyLineSegmentFigureLogic.cs
- CheckBoxBaseAdapter.cs
- StylusCollection.cs
- DictionaryBase.cs
- DefaultExpressionVisitor.cs
- EndpointInstanceProvider.cs
- MaskDescriptors.cs
- RegisteredDisposeScript.cs
- ThreadStateException.cs
- NamespaceMapping.cs
- CaseExpr.cs
- BindableAttribute.cs
- XmlAggregates.cs
- MaskedTextBoxTextEditor.cs
- GraphicsState.cs
- TaskFileService.cs
- RemoteWebConfigurationHostStream.cs
- AccessDataSourceDesigner.cs
- ServiceSettingsResponseInfo.cs
- DesignTimeTemplateParser.cs
- WindowsGraphics.cs
- TextEditorCharacters.cs
- AccessDataSourceDesigner.cs
- CodeAccessSecurityEngine.cs
- UserControl.cs
- FixedTextBuilder.cs
- Preprocessor.cs
- WorkflowNamespace.cs
- FocusChangedEventArgs.cs
- SmuggledIUnknown.cs
- Number.cs
- DependencyPropertyAttribute.cs
- TextMarkerSource.cs
- DataSpaceManager.cs
- DataContractSerializerOperationBehavior.cs
- IriParsingElement.cs