• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Any类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Any的典型用法代码示例。如果您正苦于以下问题:C# Any类的具体用法?C# Any怎么用?C# Any使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Any类属于命名空间,在下文中一共展示了Any类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Component

 public Component(ucss.uno.XComponentContext ctx, uno.Any[] args) {
     m_args = new Any[args.Length + 1];
     m_args[0] = new Any(typeof(ucss.uno.XComponentContext), ctx);
     for (int i = 0; i < args.Length; i ++) {
         m_args[i+1] = args[i];
     }
 }
开发者ID:Echo360,项目名称:LibreOffice-core,代码行数:7,代码来源:testobjects.cs


示例2: default

 /// <summary>
 /// Allows index operations on the array.
 /// </summary>
 /// <param name="i">Index position in the array.</param>
 /// <returns>The element in the specified position.</returns>
 public byte this[Any<int, long, uint, ulong> i]
 {
     get
     {
         return default(byte);
     }
     set
     {
     }
 }
开发者ID:GavinHwa,项目名称:Bridge,代码行数:15,代码来源:Uint8Array.cs


示例3: default

 /// <summary>
 /// Allows index operations on the array.
 /// </summary>
 /// <param name="i">Index position in the array.</param>
 /// <returns>The element in the specified position.</returns>
 public uint this[Any<int, long, uint, ulong> i]
 {
     get
     {
         return default(uint);
     }
     set
     {
     }
 }
开发者ID:GavinHwa,项目名称:Bridge,代码行数:15,代码来源:Uint32Array.cs


示例4: default

 /// <summary>
 /// Allows index operations on the array.
 /// </summary>
 /// <param name="i">Index position in the array.</param>
 /// <returns>The element in the specified position.</returns>
 public short this[Any<int, long, uint, ulong> i]
 {
     get
     {
         return default(short);
     }
     set
     {
     }
 }
开发者ID:GavinHwa,项目名称:Bridge,代码行数:15,代码来源:Int16Array.cs


示例5: default

 /// <summary>
 /// Allows index operations on the array.
 /// </summary>
 /// <param name="i">Index position in the array.</param>
 /// <returns>The element in the specified position.</returns>
 public float this[Any<int, long, uint, ulong> i]
 {
     get
     {
         return default(float);
     }
     set
     {
     }
 }
开发者ID:GavinHwa,项目名称:Bridge,代码行数:15,代码来源:Float32Array.cs


示例6: default

 /// <summary>
 /// Allows index operations on the array.
 /// </summary>
 /// <param name="i">Index position in the array.</param>
 /// <returns>The element in the specified position.</returns>
 public double this[Any<int, long, uint, ulong> i]
 {
     get
     {
         return default(double);
     }
     set
     {
     }
 }
开发者ID:GavinHwa,项目名称:Bridge,代码行数:15,代码来源:Float64Array.cs


示例7: Otherwise

 /// <summary>
 /// Sets route definition that will be used on route change when no
 /// other route definition is matched.
 /// </summary>
 /// <param name="parms">
 /// Mapping information to be assigned to $route.current. If called with
 /// a string, the value maps to redirectTo.
 /// </param>
 public RouteProvider Otherwise(Any<String, MappingInformation> parms)
 {
     return default(RouteProvider);
 }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:12,代码来源:Route.cs


示例8: Transform

 /*
  * Transformation matrix is described by:
  * [ a c e ]
  * [ b d f ]
  * [ 0 0 1 ]
  */
 /// <summary>
 /// Multiplies the current transformation matrix with the matrix described by its arguments.
 /// Matrix is described by a 3x3 [ a c e // b d f // 0 0 1 ] (// means a matrix line break).
 /// </summary>
 /// <param name="a">m11: Horizontal scaling.</param>
 /// <param name="b">m12: Horizontal skewing.</param>
 /// <param name="c">m21: Vertical skewing.</param>
 /// <param name="d">m22: Vertical scaling.</param>
 /// <param name="e">dx: Horizontal moving.</param>
 /// <param name="f">dy: Vertical moving.</param>
 public virtual void Transform(Any<int, double> a, Any<int, double> b, Any<int, double> c,
                               Any<int, double> d, Any<int, double> e, Any<int, double> f)
 {
     return;
 }
开发者ID:csuffyy,项目名称:Bridge,代码行数:21,代码来源:CanvasRenderingContext2D.cs


示例9: StrokeText

 /// <summary>
 /// Draws (strokes) a given text at the given (x, y) position.
 /// </summary>
 /// <param name="text">
 /// The text to render using the current font, textAlign, textBaseline, and direction values.
 /// </param>
 /// <param name="x">The x axis of the coordinate for the text starting point.</param>
 /// <param name="y">The y axis of the coordinate for the text starting point.</param>
 public virtual void StrokeText(string text, Any<uint, int> x, Any<uint, int> y)
 {
     return;
 }
开发者ID:csuffyy,项目名称:Bridge,代码行数:12,代码来源:CanvasRenderingContext2D.cs


示例10: SetLineDash

 /// <summary>
 /// Sets the current line dash pattern.
 /// </summary>
 /// <param name="segments">
 /// An Array. A list of numbers that specifies distances to alternately draw a line and a gap
 /// (in coordinate space units). If the number of elements in the array is odd, the elements
 /// of the array get copied and concatenated.
 /// For example, [5, 15, 25] will become [5, 15, 25, 5, 15, 25].
 /// </param>
 public virtual void SetLineDash(Any<double[], uint[], int[], IEnumerable<Any<double, uint, int>>> segments)
 {
     return;
 }
开发者ID:csuffyy,项目名称:Bridge,代码行数:13,代码来源:CanvasRenderingContext2D.cs


示例11: PutImageData

 /// <summary>
 /// Paints data from the given ImageData object onto the bitmap. If a dirty rectangle is provided,
 /// only the pixels from that rectangle are painted.
 /// </summary>
 /// <param name="imagedata">An imageData object containing the array of pixel values.</param>
 /// <param name="dx">
 /// Position offset in the target canvas context of the rectangle to be painted, relative to the
 /// rectangle in the origin image data.
 /// </param>
 /// <param name="dy">
 /// Position offset in the target canvas context of the rectangle to be painted, relative to the
 /// rectangle in the origin image data.
 /// </param>
 /// <param name="dirtyX">
 /// Position of the top left point of the rectangle to be painted, in the origin image data.
 /// Defaults to the top left of the whole image data.
 /// </param>
 /// <param name="dirtyY">
 /// Position of the top left point of the rectangle to be painted, in the origin image data.
 /// Defaults to the top left of the whole image data.
 /// </param>
 /// <param name="dirtyWidth">
 /// Width of the rectangle to be painted, in the origin image data. Defaults to the width of the image data.
 /// </param>
 /// <param name="dirtyHeight">
 /// Height of the rectangle to be painted, in the origin image data. Defaults to the height of the image data.
 /// </param>
 public virtual void PutImageData(ImageData imagedata, int dx, int dy, 
                                  Any<uint?, int?> dirtyX, Any<uint?, int?> dirtyY, 
                                  Any<uint?, int?> dirtyWidth, Any<uint?, int?> dirtyHeight)
 {
     return;
 }
开发者ID:csuffyy,项目名称:Bridge,代码行数:33,代码来源:CanvasRenderingContext2D.cs


示例12: CreateLinearGradient

 /// <summary>
 /// Creates a linear gradient along the line given by the coordinates represented by the parameters.
 /// </summary>
 /// <param name="x0">The x axis of the coordinate of the start point.</param>
 /// <param name="y0">The y axis of the coordinate of the start point.</param>
 /// <param name="x1">The x axis of the coordinate of the end point.</param>
 /// <param name="y1">The y axis of the coordinate of the end point.</param>
 /// <returns>A linear CanvasGradient initialized with the specified line.</returns>
 public virtual CanvasGradient CreateLinearGradient(Any<uint, int, double> x0, Any<uint, int, double> y0,
                                                    Any<uint, int, double> x1, Any<uint, int, double> y1)
 {
     return null;
 }
开发者ID:csuffyy,项目名称:Bridge,代码行数:13,代码来源:CanvasRenderingContext2D.cs


示例13: CreateImageData

 /// <summary>
 /// Creates a new, blank ImageData object with the specified dimensions. All of the pixels in the
 /// new object are transparent black.
 /// </summary>
 /// <param name="width">The width to give the new ImageData object.</param>
 /// <param name="height">The height to give the new ImageData object.</param>
 /// <returns>
 /// A new ImageData object with the specified width and height. The new object is filled with
 /// transparent black pixels.
 /// </returns>
 public virtual ImageData CreateImageData(Any<uint, int> width, Any<uint, int> height)
 {
     return null;
 }
开发者ID:csuffyy,项目名称:Bridge,代码行数:14,代码来源:CanvasRenderingContext2D.cs


示例14: Int16Array

 /// <summary>
 /// Creates a new Int16Array of the specified length.
 /// </summary>
 /// <param name="length">Length of array to create</param>
 public Int16Array(Any<int, long, uint, ulong> length)
 {
 }
开发者ID:GavinHwa,项目名称:Bridge,代码行数:7,代码来源:Int16Array.cs


示例15: PutImageData

 /// <summary>
 /// Paints data from the given ImageData object onto the bitmap. If a dirty rectangle is provided,
 /// only the pixels from that rectangle are painted.
 /// </summary>
 /// <param name="imagedata">An imageData object containing the array of pixel values.</param>
 /// <param name="dx">
 /// Position offset in the target canvas context of the rectangle to be painted, relative to the
 /// rectangle in the origin image data.
 /// </param>
 /// <param name="dy">
 /// Position offset in the target canvas context of the rectangle to be painted, relative to the
 /// rectangle in the origin image data.
 /// </param>
 /// <param name="dirtyX">
 /// Position of the top left point of the rectangle to be painted, in the origin image data.
 /// Defaults to the top left of the whole image data.
 /// </param>
 /// <param name="dirtyY">
 /// Position of the top left point of the rectangle to be painted, in the origin image data.
 /// Defaults to the top left of the whole image data.
 /// </param>
 /// <param name="dirtyWidth">
 /// Width of the rectangle to be painted, in the origin image data. Defaults to the width of the image data.
 /// </param>
 /// <param name="dirtyHeight">
 /// Height of the rectangle to be painted, in the origin image data. Defaults to the height of the image data.
 /// </param>
 public virtual void PutImageData(ImageData imagedata, int dx, int dy, Any<uint?, int?> dirtyX = null,
                                  Any<uint?, int?> dirtyY = null, Any<uint?, int?> dirtyWidth = null,
                                  Any<uint?, int?> dirtyHeight = null)
 {
     return;
 }
开发者ID:shalves,项目名称:Bridge,代码行数:33,代码来源:CanvasRenderingContext2D.cs


示例16: IsPointInPath

 /// <summary>
 /// Reports whether or not the specified point is contained in the current path.
 /// </summary>
 /// <param name="path">A Path2D path to use.</param>
 /// <param name="x">The X coordinate of the point to check.</param>
 /// <param name="y">The Y coordinate of the point to check.</param>
 /// <param name="fillRule">
 /// The algorithm by which to determine if a point is inside a path or outside a path.
 /// </param>
 /// <returns>
 /// A Boolean, which is true if the specified point is contained in the current or specfied path,
 /// otherwise false.
 /// </returns>
 public virtual bool IsPointInPath(Path2D path, Any<uint, int, double> x, Any<uint, int, double> y,
                                   CanvasTypes.CanvasFillRule? fillRule)
 {
     return false;
 }
开发者ID:csuffyy,项目名称:Bridge,代码行数:18,代码来源:CanvasRenderingContext2D.cs


示例17: IsPointInStroke

 /// <summary>
 /// Reports whether or not the specified point is inside the area contained by the stroking of a path.
 /// </summary>
 /// <param name="path">A Path2D path to use.</param>
 /// <param name="x">The X coordinate of the point to check.</param>
 /// <param name="y">The Y coordinate of the point to check.</param>
 /// <returns>
 /// A Boolean, which is true if the point is inside the area contained by the stroking of a path,
 /// otherwise false.
 /// </returns>
 public virtual bool IsPointInStroke(Path2D path, Any<uint, int, double> x, Any<uint, int, double> y)
 {
     return false;
 }
开发者ID:csuffyy,项目名称:Bridge,代码行数:14,代码来源:CanvasRenderingContext2D.cs


示例18: CreatePattern

 /// <summary>
 /// Creates a pattern using the specified image (a CanvasImageSource). It repeats the source in the
 /// directions specified by the repetition argument. This method returns a CanvasPattern.
 /// </summary>
 /// <param name="image">
 /// A CanvasImageSource to be used as image to repeat. It can either be a:
 /// • HTMLImageElement (&lt;img>),
 /// • HTMLVideoElement (&lt;video>),
 /// • HTMLCanvasElement (&lt;canvas>),
 /// • CanvasRenderingContext2D,
 /// • ImageBitmap (c# object for now),
 /// • ImageData, or a
 /// • Blob.
 /// </param>
 /// <param name="repetition"></param>
 /// <returns>An opaque CanvasPattern object describing a pattern.</returns>
 /// <remarks>
 /// At the time of implementation, ImageBitmap had no documentation and Bridge.NET did not have
 /// it defined inside.
 /// </remarks>
 public virtual CanvasPattern CreatePattern(
     Any<ImageElement, VideoElement, CanvasElement, CanvasRenderingContext2D, object, ImageData, Blob> image,
     CanvasTypes.CanvasRepetitionTypes repetition)
 {
     return null;
 }
开发者ID:csuffyy,项目名称:Bridge,代码行数:26,代码来源:CanvasRenderingContext2D.cs


示例19: Scale

 /// <summary>
 /// Adds a scaling transformation to the canvas units by x horizontally and by y vertically.
 /// </summary>
 /// <param name="x">Scaling factor in the horizontal direction.</param>
 /// <param name="y">Scaling factor in the vertical direction.</param>
 public virtual void Scale(Any<int, double> x, Any<int, double> y)
 {
     return;
 }
开发者ID:csuffyy,项目名称:Bridge,代码行数:9,代码来源:CanvasRenderingContext2D.cs


示例20: CreateRadialGradient

 /// <summary>
 /// Creates a radial gradient along the line given by the coordinates represented by the parameters.
 /// </summary>
 /// <param name="x0">The x axis of the coordinate of the start circle.</param>
 /// <param name="y0">The y axis of the coordinate of the start circle.</param>
 /// <param name="r0">The radius of the start circle.</param>
 /// <param name="x1">The x axis of the coordinate of the end circle.</param>
 /// <param name="y1">The y axis of the coordinate of the end circle.</param>
 /// <param name="r1">The radius of the end circle.</param>
 /// <returns>A radial CanvasGradient initialized with the two specified circles.</returns>
 public virtual CanvasGradient CreateRadialGradient(
     Any<uint, int, double> x0, Any<uint, int, double> y0, Any<uint, int, double> r0,
     Any<uint, int, double> x1, Any<uint, int, double> y1, Any<uint, int, double> r1)
 {
     return null;
 }
开发者ID:csuffyy,项目名称:Bridge,代码行数:16,代码来源:CanvasRenderingContext2D.cs



注:本文中的Any类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# AnyObjectId类代码示例发布时间:2022-05-24
下一篇:
C# Antlr4类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap