Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / PathSegmentCollection.cs / 1305600 / 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();
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();
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
- DesignerFrame.cs
- NamespaceCollection.cs
- MessageQueueCriteria.cs
- ValueTypeFixupInfo.cs
- TemplateBuilder.cs
- SBCSCodePageEncoding.cs
- HtmlAnchor.cs
- DataGridViewCellStyle.cs
- base64Transforms.cs
- HebrewNumber.cs
- HostAdapter.cs
- CompositeScriptReference.cs
- ModelTreeManager.cs
- BinaryUtilClasses.cs
- Hash.cs
- ChameleonKey.cs
- AssemblyHash.cs
- SafeNativeMethods.cs
- ClientProxyGenerator.cs
- LoginCancelEventArgs.cs
- RelationshipFixer.cs
- ColumnBinding.cs
- ThemeableAttribute.cs
- LinkedResource.cs
- ControlAdapter.cs
- ParenthesizePropertyNameAttribute.cs
- ConstraintEnumerator.cs
- ObjectListFieldCollection.cs
- TTSEngineProxy.cs
- newinstructionaction.cs
- LambdaCompiler.Address.cs
- X500Name.cs
- HMACMD5.cs
- Substitution.cs
- PrintPreviewDialog.cs
- RuntimeCompatibilityAttribute.cs
- CheckBoxRenderer.cs
- DoubleLink.cs
- MetricEntry.cs
- LayeredChannelFactory.cs
- BitmapInitialize.cs
- Encoding.cs
- NativeMethods.cs
- ObsoleteAttribute.cs
- DefaultDialogButtons.cs
- ListViewDeletedEventArgs.cs
- UnsafeNativeMethodsCLR.cs
- LambdaExpression.cs
- NameValuePair.cs
- FreezableCollection.cs
- OleStrCAMarshaler.cs
- CodeRegionDirective.cs
- FixUp.cs
- XmlDataSourceDesigner.cs
- ZoomPercentageConverter.cs
- AtlasWeb.Designer.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ViewStateException.cs
- Attributes.cs
- WebHttpSecurityModeHelper.cs
- ProfileSettingsCollection.cs
- HttpHandlersSection.cs
- TemplateColumn.cs
- OleDbPermission.cs
- PrintSchema.cs
- FileVersion.cs
- Dictionary.cs
- X509CertificateClaimSet.cs
- Font.cs
- DispatcherHooks.cs
- XmlDictionaryWriter.cs
- IsolatedStorageException.cs
- ProtectedConfigurationSection.cs
- EntityTransaction.cs
- GlyphCache.cs
- WindowsSspiNegotiation.cs
- ComponentResourceKey.cs
- FakeModelPropertyImpl.cs
- XmlWrappingWriter.cs
- PasswordTextContainer.cs
- WSHttpBindingBaseElement.cs
- DesignTimeTemplateParser.cs
- DataGridSortCommandEventArgs.cs
- ToolStripDropDownItem.cs
- MaterialGroup.cs
- SafePEFileHandle.cs
- TransactionChannel.cs
- DocumentXmlWriter.cs
- ApplyImportsAction.cs
- DataRowView.cs
- AsyncCompletedEventArgs.cs
- OleStrCAMarshaler.cs
- InvalidFilterCriteriaException.cs
- Converter.cs
- FileDataSourceCache.cs
- XmlSerializationReader.cs
- StateMachineHelpers.cs
- CodeBlockBuilder.cs
- XmlSchemaDatatype.cs
- Literal.cs