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
- WsdlInspector.cs
- EventLog.cs
- DataBindingExpressionBuilder.cs
- DesignerForm.cs
- PropertyTabChangedEvent.cs
- GroupBox.cs
- PlainXmlSerializer.cs
- BaseCodePageEncoding.cs
- GridItem.cs
- ProxyGenerationError.cs
- control.ime.cs
- WebServiceBindingAttribute.cs
- XmlNamespaceDeclarationsAttribute.cs
- FlowDocumentReaderAutomationPeer.cs
- TreeNodeSelectionProcessor.cs
- KeyValueConfigurationCollection.cs
- ObjectSecurity.cs
- IndentTextWriter.cs
- XhtmlConformanceSection.cs
- SingleSelectRootGridEntry.cs
- EdmScalarPropertyAttribute.cs
- _DomainName.cs
- TextServicesCompartmentEventSink.cs
- TextEditorDragDrop.cs
- BmpBitmapEncoder.cs
- SQLInt32Storage.cs
- TemplateColumn.cs
- DataMemberAttribute.cs
- OdbcError.cs
- InfiniteIntConverter.cs
- DataBinding.cs
- X509Certificate.cs
- ReliableChannelBinder.cs
- CacheMemory.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- PackWebResponse.cs
- UpdatePanelControlTrigger.cs
- PathFigureCollectionConverter.cs
- Table.cs
- DictionaryTraceRecord.cs
- TypeSemantics.cs
- InputLangChangeRequestEvent.cs
- ProcessHostFactoryHelper.cs
- SqlProviderServices.cs
- ValueProviderWrapper.cs
- MsmqIntegrationProcessProtocolHandler.cs
- PartialTrustHelpers.cs
- ParameterCollection.cs
- SqlDataAdapter.cs
- BidOverLoads.cs
- ArgumentValidation.cs
- VariableQuery.cs
- EntityDataSourceChangingEventArgs.cs
- TagNameToTypeMapper.cs
- SafeNativeMethods.cs
- DataViewSetting.cs
- CallbackValidator.cs
- ConfigXmlDocument.cs
- StylusLogic.cs
- WindowsStatusBar.cs
- dsa.cs
- RedirectionProxy.cs
- MethodExpression.cs
- BuildProvider.cs
- FacetEnabledSchemaElement.cs
- CharacterString.cs
- MethodCallConverter.cs
- WebDescriptionAttribute.cs
- TextRenderingModeValidation.cs
- ButtonColumn.cs
- PersonalizationProviderCollection.cs
- Win32Interop.cs
- OpenTypeLayoutCache.cs
- BuildDependencySet.cs
- EntityKey.cs
- Transform.cs
- TableLayout.cs
- PostBackTrigger.cs
- ButtonRenderer.cs
- AnchoredBlock.cs
- CompilerGeneratedAttribute.cs
- CustomCategoryAttribute.cs
- StorageEntityTypeMapping.cs
- AssociatedControlConverter.cs
- FixedSOMLineRanges.cs
- CustomAttributeFormatException.cs
- PathGeometry.cs
- TrustLevel.cs
- IdnMapping.cs
- EntityContainerEmitter.cs
- AmbientLight.cs
- ConstNode.cs
- ExportFileRequest.cs
- PropertyFilter.cs
- DockPanel.cs
- CodePrimitiveExpression.cs
- RootProfilePropertySettingsCollection.cs
- TaiwanLunisolarCalendar.cs
- RsaKeyGen.cs
- TextTabProperties.cs