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
- TemplateBuilder.cs
- WebPermission.cs
- DataViewListener.cs
- DialogResultConverter.cs
- HttpRequestBase.cs
- ListViewDeleteEventArgs.cs
- APCustomTypeDescriptor.cs
- VisualBasicValue.cs
- CryptoKeySecurity.cs
- StickyNoteAnnotations.cs
- DataRowCollection.cs
- RenderTargetBitmap.cs
- XslTransformFileEditor.cs
- FileLoadException.cs
- HMACSHA256.cs
- Help.cs
- Vector3DAnimation.cs
- XmlSchemaFacet.cs
- WSHttpTransportSecurityElement.cs
- GenericEnumConverter.cs
- CompilationSection.cs
- ValidatedControlConverter.cs
- SmtpTransport.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- CompositeCollection.cs
- TextTreeInsertElementUndoUnit.cs
- HttpBrowserCapabilitiesBase.cs
- ConfigurationPermission.cs
- OleDbDataAdapter.cs
- TimeStampChecker.cs
- ReadOnlyCollection.cs
- RelationshipDetailsRow.cs
- _DigestClient.cs
- TriggerCollection.cs
- _KerberosClient.cs
- ToolboxItemImageConverter.cs
- CustomAttributeFormatException.cs
- FederatedMessageSecurityOverHttp.cs
- PasswordDeriveBytes.cs
- CompModSwitches.cs
- SuppressMessageAttribute.cs
- DesignTable.cs
- TdsRecordBufferSetter.cs
- HttpServerUtilityWrapper.cs
- PageSetupDialog.cs
- _CommandStream.cs
- BitmapSource.cs
- Code.cs
- KeyInstance.cs
- XmlSchemaSequence.cs
- ImageAutomationPeer.cs
- ActiveXHost.cs
- BitmapSourceSafeMILHandle.cs
- SizeAnimationClockResource.cs
- LogStore.cs
- CapabilitiesSection.cs
- RtfToXamlLexer.cs
- IndicFontClient.cs
- Soap12FormatExtensions.cs
- NotifyParentPropertyAttribute.cs
- Permission.cs
- EdmItemCollection.cs
- SettingsAttributeDictionary.cs
- AddInToken.cs
- ColorConvertedBitmapExtension.cs
- HealthMonitoringSectionHelper.cs
- NativeMethods.cs
- Fx.cs
- TypeUsageBuilder.cs
- NetPeerTcpBinding.cs
- IconHelper.cs
- ViewValidator.cs
- OleDbFactory.cs
- XmlILOptimizerVisitor.cs
- SafeRightsManagementEnvironmentHandle.cs
- PrinterUnitConvert.cs
- QuaternionAnimationBase.cs
- ServiceOperationListItemList.cs
- RightsController.cs
- GetIndexBinder.cs
- Span.cs
- NodeCounter.cs
- SoapFormatterSinks.cs
- PresentationAppDomainManager.cs
- WebPartConnectionCollection.cs
- LogicalTreeHelper.cs
- Base64Encoder.cs
- DllNotFoundException.cs
- ObjectDataSourceMethodEventArgs.cs
- HtmlWindow.cs
- DelegateSerializationHolder.cs
- DBConnection.cs
- TileBrush.cs
- ProfileGroupSettings.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- ToolstripProfessionalRenderer.cs
- SystemGatewayIPAddressInformation.cs
- WindowsTitleBar.cs
- ContentFileHelper.cs
- BitmapEncoder.cs