コード例 #1
0
 extern internal static IntPtr _StyleSpans(Path path, IntPtr styles, IntPtr lengths, LengthKind lengthKind, double lengthOffset);
コード例 #2
0
        public static StyleSpan [] StyleSpans(Path path, StrokeStyle [] styles, NSNumber [] lengths, LengthKind lengthKind, double lengthOffset)
        {
            var stylesArray  = NSArray.FromNSObjects(styles);
            var lengthsArray = NSArray.FromNSObjects(lengths);
            var result       = _StyleSpans(path, stylesArray.Handle, lengthsArray.Handle, lengthKind, lengthOffset);
            var nsObjects    = NSArray.ArrayFromHandle <NSObject> (result);
            var resultArray  = new StyleSpan [nsObjects.Length];

            for (int i = 0; i < nsObjects.Length; i++)
            {
                resultArray [i] = (StyleSpan)nsObjects [i];
            }

            return(resultArray);
        }
コード例 #3
0
 extern internal static IntPtr _StyleSpans(Path path, IntPtr styles, IntPtr lengths, LengthKind lengthKind);