Skip to main content
.NET Framework Class Library
PathSegmentCollection Class

Represents a collection of PathSegment objects that can be individually accessed by index.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Syntax
<[%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_0%]([%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_1%].None, Readability := [%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_2%].Unreadable)> _
Public NotInheritable Class PathSegmentCollection _
	Inherits [%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_3%] _
	Implements [%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_4%], [%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_5%], [%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_6%](Of [%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_7%]),  _
	[%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_8%](Of [%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_9%]), [%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_10%](Of [%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_11%]), [%$TOPIC/ms635305_en-us_VS_110_3_0_0_0_12%]
[[%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_0%]([%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_1%].None, Readability = [%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_2%].Unreadable)]
public sealed class PathSegmentCollection : [%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_3%], 
	[%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_4%], [%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_5%], [%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_6%]<[%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_7%]>, [%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_8%]<[%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_9%]>, 
	[%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_10%]<[%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_11%]>, [%$TOPIC/ms635305_en-us_VS_110_3_0_1_0_12%]
[[%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_0%]([%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_1%]::None, Readability = [%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_2%]::Unreadable)]
public ref class PathSegmentCollection sealed : public [%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_3%], 
	[%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_4%], [%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_5%], [%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_6%]<[%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_7%]^>, [%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_8%]<[%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_9%]^>, 
	[%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_10%]<[%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_11%]^>, [%$TOPIC/ms635305_en-us_VS_110_3_0_2_0_12%]
[<[%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_0%]>]
[<[%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_1%]([%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_2%].None, Readability = [%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_3%].Unreadable)>]
type PathSegmentCollection =  
    class 
        inherit [%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_4%] 
        interface [%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_5%] 
        interface [%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_6%] 
        interface [%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_7%]<[%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_8%]>
        interface [%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_9%]<[%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_10%]>
        interface [%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_11%]<[%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_12%]>
        interface [%$TOPIC/ms635305_en-us_VS_110_3_0_3_0_13%] 
    end
<PathSegmentCollection .../>
<object>
  <object.property>
    oneOrMorePathSegmentObjectElements
  </object.property>
</object>

XAML Values

oneOrMorePathSegmentObjectElements

One or more PathSegment objects, declared using object element syntax.

The PathSegmentCollection type exposes the following members.

Constructors
  NameDescription
Public method PathSegmentCollectionInitializes a new instance of a PathSegmentCollection.
Public method PathSegmentCollection(IEnumerablePathSegment)Initializes a new instance of the PathSegmentCollection class with the specified collection of PathSegment objects.
Public method PathSegmentCollection(Int32)Initializes a new instance of the PathSegmentCollection class with the specified capacity, or the number of PathSegment objects the collection is initially capable of storing.
Top
Properties
  NameDescription
Public property CanFreezeGets a value that indicates whether the object can be made unmodifiable. (Inherited from Freezable.)
Public property Count Gets the number of path segments contained in the PathSegmentCollection.
Public property DependencyObjectTypeGets the DependencyObjectType that wraps the CLR type of this instance.  (Inherited from DependencyObject.)
Public property DispatcherGets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public property HasAnimatedPropertiesGets a value that indicates whether one or more AnimationClock objects is associated with any of this object's dependency properties. (Inherited from Animatable.)
Public property IsFrozenGets a value that indicates whether the object is currently modifiable. (Inherited from Freezable.)
Public property IsSealedGets a value that indicates whether this instance is currently sealed (read-only). (Inherited from DependencyObject.)
Public property ItemGets or sets the PathSegment at the specified zero-based index.
Top
Methods
  NameDescription
Public method AddAdds a PathSegment to the end of the collection.
Public method ApplyAnimationClock(DependencyProperty, AnimationClock)Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the SnapshotAndReplace handoff behavior is used. (Inherited from Animatable.)
Public method ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the specified HandoffBehavior is used. (Inherited from Animatable.)
Public method BeginAnimation(DependencyProperty, AnimationTimeline)Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used. (Inherited from Animatable.)
Public method BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the specified HandoffBehavior is used. (Inherited from Animatable.)
Public method CheckAccessDetermines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Public method Clear Clears the collection of all segments and resets Count to zero.
Public method ClearValue(DependencyProperty)Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier. (Inherited from DependencyObject.)
Public method ClearValue(DependencyPropertyKey)Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey. (Inherited from DependencyObject.)
Public method CloneCreates a modifiable clone of this PathSegmentCollection, making deep copies of this object's values. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.
Public method CloneCurrentValueCreates a modifiable clone of this PathSegmentCollection object, making deep copies of this object's current values. Resource references, data bindings, and animations are not copied, but their current values are.
Public method CoerceValueCoerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. (Inherited from DependencyObject.)
Public method Contains Returns a Boolean that indicates whether the specified PathSegment is contained within the collection.
Public method CopyTo Copies the entire PathSegmentCollection to a one-dimensional PathSegment array, starting at the specified index of the target array.
Public method EqualsDetermines whether a provided DependencyObject is equivalent to the current DependencyObject. (Inherited from DependencyObject.)
Public method FreezeMakes the current object unmodifiable and sets its IsFrozen property to true. (Inherited from Freezable.)
Public method GetAnimationBaseValueReturns the non-animated value of the specified DependencyProperty. (Inherited from Animatable.)
Public method GetAsFrozenCreates a frozen copy of the Freezable, using base (non-animated) property values. Because the copy is frozen, any frozen sub-objects are copied by reference. (Inherited from Freezable.)
Public method GetCurrentValueAsFrozenCreates a frozen copy of the Freezable using current property values. Because the copy is frozen, any frozen sub-objects are copied by reference. (Inherited from Freezable.)
Public method GetEnumeratorReturns an enumerator that can iterate through the collection.
Public method GetHashCodeGets a hash code for this DependencyObject. (Inherited from DependencyObject.)
Public method GetLocalValueEnumeratorCreates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (Inherited from DependencyObject.)
Public method GetTypeGets the Type of the current instance. (Inherited from Object.)
Public method GetValueReturns the current effective value of a dependency property on this instance of a DependencyObject. (Inherited from DependencyObject.)
Public method IndexOfReturns the index of the first occurrence of the specified PathSegment.
Public method InsertInserts a PathSegment into this PathSegmentCollection at the specified index.
Public method InvalidatePropertyRe-evaluates the effective value for the specified dependency property (Inherited from DependencyObject.)
Public method ReadLocalValueReturns the local value of a dependency property, if it exists. (Inherited from DependencyObject.)
Public method RemoveRemoves the first occurrence of the specified PathSegment from this PathSegmentCollection.
Public method RemoveAtRemoves the PathSegment at the specified index from this PathSegmentCollection.
Public method SetCurrentValueSets the value of a dependency property without changing its value source. (Inherited from DependencyObject.)
Public method SetValue(DependencyProperty, Object)Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.)
Public method SetValue(DependencyPropertyKey, Object)Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. (Inherited from DependencyObject.)
Protected method ShouldSerializePropertyReturns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (Inherited from DependencyObject.)
Public method ToStringReturns a string that represents the current object. (Inherited from Object.)
Public method VerifyAccessEnforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top
Events
  NameDescription
Public event ChangedOccurs when the Freezable or an object it contains is modified. (Inherited from Freezable.)
Top
Extension Methods
  NameDescription
Public Extension Method AggregatePathSegment(FuncPathSegment, PathSegment, PathSegment)Overloaded. Applies an accumulator function over a sequence. (Defined by Enumerable.)
Public Extension Method AggregatePathSegment, TAccumulate(TAccumulate, FuncTAccumulate, PathSegment, TAccumulate)Overloaded. Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value. (Defined by Enumerable.)
Public Extension Method AggregatePathSegment, TAccumulate, TResult(TAccumulate, FuncTAccumulate, PathSegment, TAccumulate, FuncTAccumulate, TResult)Overloaded. Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value. (Defined by Enumerable.)
Public Extension Method AllPathSegmentDetermines whether all elements of a sequence satisfy a condition. (Defined by Enumerable.)
Public Extension Method AnyPathSegmentOverloaded. Determines whether a sequence contains any elements. (Defined by Enumerable.)
Public Extension Method AnyPathSegment(FuncPathSegment, Boolean)Overloaded. Determines whether any element of a sequence satisfies a condition. (Defined by Enumerable.)
Public Extension Method AsEnumerablePathSegmentReturns the input typed as IEnumerableT. (Defined by Enumerable.)
Public Extension Method AsParallelOverloaded. Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsParallelPathSegmentOverloaded. Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryableOverloaded. Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method AsQueryablePathSegmentOverloaded. Converts a generic IEnumerableT to a generic IQueryableT. (Defined by Queryable.)
Public Extension Method AveragePathSegment(FuncPathSegment, NullableDecimal)Overloaded. Computes the average of a sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method AveragePathSegment(FuncPathSegment, NullableDouble)Overloaded. Computes the average of a sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method AveragePathSegment(FuncPathSegment, Int32)Overloaded. Computes the average of a sequence of Int32 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method AveragePathSegment(FuncPathSegment, NullableInt32)Overloaded. Computes the average of a sequence of nullable Int32 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method AveragePathSegment(FuncPathSegment, Int64)Overloaded. Computes the average of a sequence of Int64 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method AveragePathSegment(FuncPathSegment, NullableInt64)Overloaded. Computes the average of a sequence of nullable Int64 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method AveragePathSegment(FuncPathSegment, Single)Overloaded. Computes the average of a sequence of Single values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method AveragePathSegment(FuncPathSegment, NullableSingle)Overloaded. Computes the average of a sequence of nullable Single values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method AveragePathSegment(FuncPathSegment, Double)Overloaded. Computes the average of a sequence of Double values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method AveragePathSegment(FuncPathSegment, Decimal)Overloaded. Computes the average of a sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method CastTResultCasts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method ConcatPathSegmentConcatenates two sequences. (Defined by Enumerable.)
Public Extension Method ContainsPathSegment(PathSegment)Overloaded. Determines whether a sequence contains a specified element by using the default equality comparer. (Defined by Enumerable.)
Public Extension Method ContainsPathSegment(PathSegment, IEqualityComparerPathSegment)Overloaded. Determines whether a sequence contains a specified element by using a specified IEqualityComparerT. (Defined by Enumerable.)
Public Extension Method CountPathSegmentOverloaded. Returns the number of elements in a sequence. (Defined by Enumerable.)
Public Extension Method CountPathSegment(FuncPathSegment, Boolean)Overloaded. Returns a number that represents how many elements in the specified sequence satisfy a condition. (Defined by Enumerable.)
Public Extension Method DefaultIfEmptyPathSegmentOverloaded. Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty. (Defined by Enumerable.)
Public Extension Method DefaultIfEmptyPathSegment(PathSegment)Overloaded. Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty. (Defined by Enumerable.)
Public Extension Method DistinctPathSegmentOverloaded. Returns distinct elements from a sequence by using the default equality comparer to compare values. (Defined by Enumerable.)
Public Extension Method DistinctPathSegment(IEqualityComparerPathSegment)Overloaded. Returns distinct elements from a sequence by using a specified IEqualityComparerT to compare values. (Defined by Enumerable.)
Public Extension Method ElementAtPathSegmentReturns the element at a specified index in a sequence. (Defined by Enumerable.)
Public Extension Method ElementAtOrDefaultPathSegmentReturns the element at a specified index in a sequence or a default value if the index is out of range. (Defined by Enumerable.)
Public Extension Method ExceptPathSegment(IEnumerablePathSegment)Overloaded. Produces the set difference of two sequences by using the default equality comparer to compare values. (Defined by Enumerable.)
Public Extension Method ExceptPathSegment(IEnumerablePathSegment, IEqualityComparerPathSegment)Overloaded. Produces the set difference of two sequences by using the specified IEqualityComparerT to compare values. (Defined by Enumerable.)
Public Extension Method FirstPathSegmentOverloaded. Returns the first element of a sequence. (Defined by Enumerable.)
Public Extension Method FirstPathSegment(FuncPathSegment, Boolean)Overloaded. Returns the first element in a sequence that satisfies a specified condition. (Defined by Enumerable.)
Public Extension Method FirstOrDefaultPathSegmentOverloaded. Returns the first element of a sequence, or a default value if the sequence contains no elements. (Defined by Enumerable.)
Public Extension Method FirstOrDefaultPathSegment(FuncPathSegment, Boolean)Overloaded. Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. (Defined by Enumerable.)
Public Extension Method GroupByPathSegment, TKey(FuncPathSegment, TKey)Overloaded. Groups the elements of a sequence according to a specified key selector function. (Defined by Enumerable.)
Public Extension Method GroupByPathSegment, TKey(FuncPathSegment, TKey, IEqualityComparerTKey)Overloaded. Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer. (Defined by Enumerable.)
Public Extension Method GroupByPathSegment, TKey, TElement(FuncPathSegment, TKey, FuncPathSegment, TElement)Overloaded. Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function. (Defined by Enumerable.)
Public Extension Method GroupByPathSegment, TKey, TResult(FuncPathSegment, TKey, FuncTKey, IEnumerablePathSegment, TResult)Overloaded. Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. (Defined by Enumerable.)
Public Extension Method GroupByPathSegment, TKey, TElement(FuncPathSegment, TKey, FuncPathSegment, TElement, IEqualityComparerTKey)Overloaded. Groups the elements of a sequence according to a key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function. (Defined by Enumerable.)
Public Extension Method GroupByPathSegment, TKey, TResult(FuncPathSegment, TKey, FuncTKey, IEnumerablePathSegment, TResult, IEqualityComparerTKey)Overloaded. Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The keys are compared by using a specified comparer. (Defined by Enumerable.)
Public Extension Method GroupByPathSegment, TKey, TElement, TResult(FuncPathSegment, TKey, FuncPathSegment, TElement, FuncTKey, IEnumerableTElement, TResult)Overloaded. Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function. (Defined by Enumerable.)
Public Extension Method GroupByPathSegment, TKey, TElement, TResult(FuncPathSegment, TKey, FuncPathSegment, TElement, FuncTKey, IEnumerableTElement, TResult, IEqualityComparerTKey)Overloaded. Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function. (Defined by Enumerable.)
Public Extension Method GroupJoinPathSegment, TInner, TKey, TResult(IEnumerableTInner, FuncPathSegment, TKey, FuncTInner, TKey, FuncPathSegment, IEnumerableTInner, TResult)Overloaded. Correlates the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys. (Defined by Enumerable.)
Public Extension Method GroupJoinPathSegment, TInner, TKey, TResult(IEnumerableTInner, FuncPathSegment, TKey, FuncTInner, TKey, FuncPathSegment, IEnumerableTInner, TResult, IEqualityComparerTKey)Overloaded. Correlates the elements of two sequences based on key equality and groups the results. A specified IEqualityComparerT is used to compare keys. (Defined by Enumerable.)
Public Extension Method IntersectPathSegment(IEnumerablePathSegment)Overloaded. Produces the set intersection of two sequences by using the default equality comparer to compare values. (Defined by Enumerable.)
Public Extension Method IntersectPathSegment(IEnumerablePathSegment, IEqualityComparerPathSegment)Overloaded. Produces the set intersection of two sequences by using the specified IEqualityComparerT to compare values. (Defined by Enumerable.)
Public Extension Method JoinPathSegment, TInner, TKey, TResult(IEnumerableTInner, FuncPathSegment, TKey, FuncTInner, TKey, FuncPathSegment, TInner, TResult)Overloaded. Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys. (Defined by Enumerable.)
Public Extension Method JoinPathSegment, TInner, TKey, TResult(IEnumerableTInner, FuncPathSegment, TKey, FuncTInner, TKey, FuncPathSegment, TInner, TResult, IEqualityComparerTKey)Overloaded. Correlates the elements of two sequences based on matching keys. A specified IEqualityComparerT is used to compare keys. (Defined by Enumerable.)
Public Extension Method LastPathSegmentOverloaded. Returns the last element of a sequence. (Defined by Enumerable.)
Public Extension Method LastPathSegment(FuncPathSegment, Boolean)Overloaded. Returns the last element of a sequence that satisfies a specified condition. (Defined by Enumerable.)
Public Extension Method LastOrDefaultPathSegmentOverloaded. Returns the last element of a sequence, or a default value if the sequence contains no elements. (Defined by Enumerable.)
Public Extension Method LastOrDefaultPathSegment(FuncPathSegment, Boolean)Overloaded. Returns the last element of a sequence that satisfies a condition or a default value if no such element is found. (Defined by Enumerable.)
Public Extension Method LongCountPathSegmentOverloaded. Returns an Int64 that represents the total number of elements in a sequence. (Defined by Enumerable.)
Public Extension Method LongCountPathSegment(FuncPathSegment, Boolean)Overloaded. Returns an Int64 that represents how many elements in a sequence satisfy a condition. (Defined by Enumerable.)
Public Extension Method MaxPathSegmentOverloaded. Returns the maximum value in a generic sequence. (Defined by Enumerable.)
Public Extension Method MaxPathSegment(FuncPathSegment, NullableDecimal)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum nullable Decimal value. (Defined by Enumerable.)
Public Extension Method MaxPathSegment(FuncPathSegment, NullableDouble)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum nullable Double value. (Defined by Enumerable.)
Public Extension Method MaxPathSegment(FuncPathSegment, Int32)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Int32 value. (Defined by Enumerable.)
Public Extension Method MaxPathSegment(FuncPathSegment, NullableInt32)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum nullable Int32 value. (Defined by Enumerable.)
Public Extension Method MaxPathSegment(FuncPathSegment, Int64)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Int64 value. (Defined by Enumerable.)
Public Extension Method MaxPathSegment(FuncPathSegment, NullableInt64)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum nullable Int64 value. (Defined by Enumerable.)
Public Extension Method MaxPathSegment(FuncPathSegment, Single)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Single value. (Defined by Enumerable.)
Public Extension Method MaxPathSegment(FuncPathSegment, NullableSingle)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum nullable Single value. (Defined by Enumerable.)
Public Extension Method MaxPathSegment(FuncPathSegment, Double)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Double value. (Defined by Enumerable.)
Public Extension Method MaxPathSegment(FuncPathSegment, Decimal)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Decimal value. (Defined by Enumerable.)
Public Extension Method MaxPathSegment, TResult(FuncPathSegment, TResult)Overloaded. Invokes a transform function on each element of a generic sequence and returns the maximum resulting value. (Defined by Enumerable.)
Public Extension Method MinPathSegmentOverloaded. Returns the minimum value in a generic sequence. (Defined by Enumerable.)
Public Extension Method MinPathSegment(FuncPathSegment, NullableDecimal)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum nullable Decimal value. (Defined by Enumerable.)
Public Extension Method MinPathSegment(FuncPathSegment, NullableDouble)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum nullable Double value. (Defined by Enumerable.)
Public Extension Method MinPathSegment(FuncPathSegment, Int32)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Int32 value. (Defined by Enumerable.)
Public Extension Method MinPathSegment(FuncPathSegment, NullableInt32)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum nullable Int32 value. (Defined by Enumerable.)
Public Extension Method MinPathSegment(FuncPathSegment, Int64)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Int64 value. (Defined by Enumerable.)
Public Extension Method MinPathSegment(FuncPathSegment, NullableInt64)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum nullable Int64 value. (Defined by Enumerable.)
Public Extension Method MinPathSegment(FuncPathSegment, Single)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Single value. (Defined by Enumerable.)
Public Extension Method MinPathSegment(FuncPathSegment, NullableSingle)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum nullable Single value. (Defined by Enumerable.)
Public Extension Method MinPathSegment(FuncPathSegment, Double)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Double value. (Defined by Enumerable.)
Public Extension Method MinPathSegment(FuncPathSegment, Decimal)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Decimal value. (Defined by Enumerable.)
Public Extension Method MinPathSegment, TResult(FuncPathSegment, TResult)Overloaded. Invokes a transform function on each element of a generic sequence and returns the minimum resulting value. (Defined by Enumerable.)
Public Extension Method OfTypeTResultFilters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Public Extension Method OrderByPathSegment, TKey(FuncPathSegment, TKey)Overloaded. Sorts the elements of a sequence in ascending order according to a key. (Defined by Enumerable.)
Public Extension Method OrderByPathSegment, TKey(FuncPathSegment, TKey, IComparerTKey)Overloaded. Sorts the elements of a sequence in ascending order by using a specified comparer. (Defined by Enumerable.)
Public Extension Method OrderByDescendingPathSegment, TKey(FuncPathSegment, TKey)Overloaded. Sorts the elements of a sequence in descending order according to a key. (Defined by Enumerable.)
Public Extension Method OrderByDescendingPathSegment, TKey(FuncPathSegment, TKey, IComparerTKey)Overloaded. Sorts the elements of a sequence in descending order by using a specified comparer. (Defined by Enumerable.)
Public Extension Method ReversePathSegmentInverts the order of the elements in a sequence. (Defined by Enumerable.)
Public Extension Method SelectPathSegment, TResult(FuncPathSegment, TResult)Overloaded. Projects each element of a sequence into a new form. (Defined by Enumerable.)
Public Extension Method SelectPathSegment, TResult(FuncPathSegment, Int32, TResult)Overloaded. Projects each element of a sequence into a new form by incorporating the element's index. (Defined by Enumerable.)
Public Extension Method SelectManyPathSegment, TResult(FuncPathSegment, IEnumerableTResult)Overloaded. Projects each element of a sequence to an IEnumerableT and flattens the resulting sequences into one sequence. (Defined by Enumerable.)
Public Extension Method SelectManyPathSegment, TResult(FuncPathSegment, Int32, IEnumerableTResult)Overloaded. Projects each element of a sequence to an IEnumerableT, and flattens the resulting sequences into one sequence. The index of each source element is used in the projected form of that element. (Defined by Enumerable.)
Public Extension Method SelectManyPathSegment, TCollection, TResult(FuncPathSegment, Int32, IEnumerableTCollection, FuncPathSegment, TCollection, TResult)Overloaded. Projects each element of a sequence to an IEnumerableT, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. The index of each source element is used in the intermediate projected form of that element. (Defined by Enumerable.)
Public Extension Method SelectManyPathSegment, TCollection, TResult(FuncPathSegment, IEnumerableTCollection, FuncPathSegment, TCollection, TResult)Overloaded. Projects each element of a sequence to an IEnumerableT, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. (Defined by Enumerable.)
Public Extension Method SequenceEqualPathSegment(IEnumerablePathSegment)Overloaded. Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type. (Defined by Enumerable.)
Public Extension Method SequenceEqualPathSegment(IEnumerablePathSegment, IEqualityComparerPathSegment)Overloaded. Determines whether two sequences are equal by comparing their elements by using a specified IEqualityComparerT. (Defined by Enumerable.)
Public Extension Method SinglePathSegmentOverloaded. Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence. (Defined by Enumerable.)
Public Extension Method SinglePathSegment(FuncPathSegment, Boolean)Overloaded. Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists. (Defined by Enumerable.)
Public Extension Method SingleOrDefaultPathSegmentOverloaded. Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence. (Defined by Enumerable.)
Public Extension Method SingleOrDefaultPathSegment(FuncPathSegment, Boolean)Overloaded. Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition. (Defined by Enumerable.)
Public Extension Method SkipPathSegmentBypasses a specified number of elements in a sequence and then returns the remaining elements. (Defined by Enumerable.)
Public Extension Method SkipWhilePathSegment(FuncPathSegment, Boolean)Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. (Defined by Enumerable.)
Public Extension Method SkipWhilePathSegment(FuncPathSegment, Int32, Boolean)Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function. (Defined by Enumerable.)
Public Extension Method SumPathSegment(FuncPathSegment, NullableDecimal)Overloaded. Computes the sum of the sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method SumPathSegment(FuncPathSegment, NullableDouble)Overloaded. Computes the sum of the sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method SumPathSegment(FuncPathSegment, Int32)Overloaded. Computes the sum of the sequence of Int32 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method SumPathSegment(FuncPathSegment, NullableInt32)Overloaded. Computes the sum of the sequence of nullable Int32 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method SumPathSegment(FuncPathSegment, Int64)Overloaded. Computes the sum of the sequence of Int64 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method SumPathSegment(FuncPathSegment, NullableInt64)Overloaded. Computes the sum of the sequence of nullable Int64 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method SumPathSegment(FuncPathSegment, Single)Overloaded. Computes the sum of the sequence of Single values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method SumPathSegment(FuncPathSegment, NullableSingle)Overloaded. Computes the sum of the sequence of nullable Single values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method SumPathSegment(FuncPathSegment, Double)Overloaded. Computes the sum of the sequence of Double values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method SumPathSegment(FuncPathSegment, Decimal)Overloaded. Computes the sum of the sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension Method TakePathSegmentReturns a specified number of contiguous elements from the start of a sequence. (Defined by Enumerable.)
Public Extension Method TakeWhilePathSegment(FuncPathSegment, Boolean)Overloaded. Returns elements from a sequence as long as a specified condition is true. (Defined by Enumerable.)
Public Extension Method TakeWhilePathSegment(FuncPathSegment, Int32, Boolean)Overloaded. Returns elements from a sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function. (Defined by Enumerable.)
Public Extension Method ToArrayPathSegmentCreates an array from a IEnumerableT. (Defined by Enumerable.)
Public Extension Method ToDictionaryPathSegment, TKey(FuncPathSegment, TKey)Overloaded. Creates a DictionaryTKey, TValue from an IEnumerableT according to a specified key selector function. (Defined by Enumerable.)
Public Extension Method ToDictionaryPathSegment, TKey(FuncPathSegment, TKey, IEqualityComparerTKey)Overloaded. Creates a DictionaryTKey, TValue from an IEnumerableT according to a specified key selector function and key comparer. (Defined by Enumerable.)
Public Extension Method ToDictionaryPathSegment, TKey, TElement(FuncPathSegment, TKey, FuncPathSegment, TElement)Overloaded. Creates a DictionaryTKey, TValue from an IEnumerableT according to specified key selector and element selector functions. (Defined by Enumerable.)
Public Extension Method ToDictionaryPathSegment, TKey, TElement(FuncPathSegment, TKey, FuncPathSegment, TElement, IEqualityComparerTKey)Overloaded. Creates a DictionaryTKey, TValue from an IEnumerableT according to a specified key selector function, a comparer, and an element selector function. (Defined by Enumerable.)
Public Extension Method ToListPathSegmentCreates a ListT from an IEnumerableT. (Defined by Enumerable.)
Public Extension Method ToLookupPathSegment, TKey(FuncPathSegment, TKey)Overloaded. Creates a LookupTKey, TElement from an IEnumerableT according to a specified key selector function. (Defined by Enumerable.)
Public Extension Method ToLookupPathSegment, TKey(FuncPathSegment, TKey, IEqualityComparerTKey)Overloaded. Creates a LookupTKey, TElement from an IEnumerableT according to a specified key selector function and key comparer. (Defined by Enumerable.)
Public Extension Method ToLookupPathSegment, TKey, TElement(FuncPathSegment, TKey, FuncPathSegment, TElement)Overloaded. Creates a LookupTKey, TElement from an IEnumerableT according to specified key selector and element selector functions. (Defined by Enumerable.)
Public Extension Method ToLookupPathSegment, TKey, TElement(FuncPathSegment, TKey, FuncPathSegment, TElement, IEqualityComparerTKey)Overloaded. Creates a LookupTKey, TElement from an IEnumerableT according to a specified key selector function, a comparer and an element selector function. (Defined by Enumerable.)
Public Extension Method UnionPathSegment(IEnumerablePathSegment)Overloaded. Produces the set union of two sequences by using the default equality comparer. (Defined by Enumerable.)
Public Extension Method UnionPathSegment(IEnumerablePathSegment, IEqualityComparerPathSegment)Overloaded. Produces the set union of two sequences by using a specified IEqualityComparerT. (Defined by Enumerable.)
Public Extension Method WherePathSegment(FuncPathSegment, Boolean)Overloaded. Filters a sequence of values based on a predicate. (Defined by Enumerable.)
Public Extension Method WherePathSegment(FuncPathSegment, Int32, Boolean)Overloaded. Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function. (Defined by Enumerable.)
Public Extension Method ZipPathSegment, TSecond, TResultApplies a specified function to the corresponding elements of two sequences, producing a sequence of the results. (Defined by Enumerable.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implemetation Private method ICollectionCopyToInfrastructure. For a description of this member, see ICollectionCopyTo.
Explicit interface implemetation Private property ICollectionPathSegmentIsReadOnlyInfrastructure. For a description of this member, see ICollectionTIsReadOnly.
Explicit interface implemetation Private property ICollectionIsSynchronizedInfrastructure. For a description of this member, see ICollectionIsSynchronized.
Explicit interface implemetation Private property ICollectionSyncRootInfrastructure. For a description of this member, see ICollectionSyncRoot.
Explicit interface implemetation Private method IEnumerablePathSegmentGetEnumeratorInfrastructure. For a description of this member, see IEnumerableTGetEnumerator.
Explicit interface implemetation Private method IEnumerableGetEnumeratorInfrastructure. For a description of this member, see IEnumerableGetEnumerator.
Explicit interface implemetation Private method IListAddInfrastructure. For a description of this member, see IListAdd.
Explicit interface implemetation Private method IListContainsInfrastructure. For a description of this member, see IListContains.
Explicit interface implemetation Private method IListIndexOfInfrastructure. For a description of this member, see IListIndexOf.
Explicit interface implemetation Private method IListInsertInfrastructure. For a description of this member, see IListInsert.
Explicit interface implemetation Private property IListIsFixedSizeInfrastructure. For a description of this member, see IListIsFixedSize.
Explicit interface implemetation Private property IListIsReadOnlyInfrastructure. For a description of this member, see IListIsReadOnly.
Explicit interface implemetation Private property IListItemInfrastructure. For a description of this member, see IListItem.
Explicit interface implemetation Private method IListRemoveInfrastructure. For a description of this member, see IListRemove.
Top
Remarks

Except as noted, members of this class behave exactly as described by the IListT, ICollectionT, and IEnumerableT documentation.

Freezable Features: Because it inherits from the Freezable class, the PathSegmentCollection class provides several special features: PathSegmentCollection objects can be declared as resources, shared among multiple objects, made read-only to improve performance, cloned, and made thread-safe. For more information about the different features provided by Freezable objects, see the Freezable Objects Overview.

Examples

This example shows how to create a shape using the PathGeometry class. PathGeometry objects are composed of one or more PathFigure objects; each PathFigure represents a different "figure" or shape. Each PathFigure is itself composed of one or more PathSegment objects, each representing a connected portion of the figure or shape. Segment types include LineSegment, ArcSegment, and BezierSegment.

The following example uses a PathGeometry to create a triangle. The PathGeometry is displayed using a Path element.

<Path Stroke="Black" StrokeThickness="1">
  <Path.Data>
    <PathGeometry>
      <PathGeometry.Figures>
        <PathFigureCollection>
          <PathFigure IsClosed="True" StartPoint="10,100">
            <PathFigure.Segments>
              <PathSegmentCollection>
                <LineSegment Point="100,100" />
                <LineSegment Point="100,50" />
              </PathSegmentCollection>
            </PathFigure.Segments>
          </PathFigure>
        </PathFigureCollection>
      </PathGeometry.Figures>
    </PathGeometry>
  </Path.Data>
</Path>

The following illustration shows the shape created in the previous example.

A triangle created with a PathGeometry

A PathGeometry

The previous example showed how to create a relatively simple shape, a triangle. A PathGeometry can also be used to create more complex shapes, including arcs and curves. For examples, see How to: Create an Elliptical Arc, How to: Create a Cubic Bezier Curve, and How to: Create a Quadratic Bezier Curve.

This example is part of larger sample; for the complete sample, see the Geometries Sample.

Version Information

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Platforms

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.