Northwoods.GoWPF 2.2.4 Assembly
Spot Structure
Members 

A spot represents a relative point from (0,0) to (1,1) within the bounds of an element, plus an absolute offset.
Syntax
<ValueSerializerAttribute(ValueSerializerType=Northwoods.GoXam.Spot+SpotValueSerializer, ValueSerializerTypeName="Northwoods.GoXam.Spot+SpotValueSerializer, Northwoods.GoWPF, Version=2.2.4.45, Culture=neutral, PublicKeyToken=616e2dc80068a33d")>
<TypeConverterAttribute("Northwoods.GoXam.Spot+SpotConverter, Northwoods.GoWPF, Version=2.2.4.45, Culture=neutral, PublicKeyToken=616e2dc80068a33d")>
<SerializableAttribute()>
Public Structure Spot 
   Inherits System.ValueType
   Implements System.IFormattable 
[ValueSerializerAttribute(ValueSerializerType=Northwoods.GoXam.Spot+SpotValueSerializer, ValueSerializerTypeName="Northwoods.GoXam.Spot+SpotValueSerializer, Northwoods.GoWPF, Version=2.2.4.45, Culture=neutral, PublicKeyToken=616e2dc80068a33d")]
[TypeConverterAttribute("Northwoods.GoXam.Spot+SpotConverter, Northwoods.GoWPF, Version=2.2.4.45, Culture=neutral, PublicKeyToken=616e2dc80068a33d")]
[SerializableAttribute()]
public struct Spot : System.ValueType, System.IFormattable  
Remarks

A spot can represent a particular point (such as TopLeft or new Spot(0.25, 0.25)), or a particular side (such as RightSide) or multiple sides (such as TopBottomSides), or when equal to None no particular point at all.

The X and Y values denote the fractional distance of the spot point along the dimensions of the element's width and height. Zero is at the left or the top of the element; one is at the right or the bottom of the element. The values must be between 0 and 1. Values that are NaN are reserved for special spots such as None or the spots that represent sides.

Once the point is determined by the X and Y values within a particular bounding rectangle, the OffsetX and OffsetY values are added to determine the final point. The offset values may be negative. Negative offset values when the (X,Y) are near the left and/or top may result in a point that is outside of the bounds of the element. Positive offset values when the (X,Y) are near the right and/or bottom may also result in a point that is outside of the bounds of the element.

Inheritance Hierarchy

System.Object
   System.ValueType
      Northwoods.GoXam.Spot

Requirements
See Also

Reference

Spot Members
Northwoods.GoXam Namespace

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback