Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / StrokeDescriptor.cs
//------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
using System;
// Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET
namespace MS.Internal.Ink.InkSerializedFormat
{
internal class StrokeDescriptor
{
private System.Collections.Generic.List _strokeDescriptor = new System.Collections.Generic.List();
private uint _Size = 0;
public uint Size
{
get
{
return _Size;
}
set
{
_Size = value;
}
}
public System.Collections.Generic.List Template
{
get
{
return _strokeDescriptor;
}
}
public StrokeDescriptor()
{
}
public bool IsEqual(StrokeDescriptor strd)
{
// If the no of templates in them are different return false
if( _strokeDescriptor.Count != strd.Template.Count )
return false;
// Compare each tag in the template. If any one of them is different, return false;
for( int i = 0; i < _strokeDescriptor.Count; i++ )
if( _strokeDescriptor[i] != strd.Template[i] )
return false;
return true;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
using System;
// Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET
namespace MS.Internal.Ink.InkSerializedFormat
{
internal class StrokeDescriptor
{
private System.Collections.Generic.List _strokeDescriptor = new System.Collections.Generic.List();
private uint _Size = 0;
public uint Size
{
get
{
return _Size;
}
set
{
_Size = value;
}
}
public System.Collections.Generic.List Template
{
get
{
return _strokeDescriptor;
}
}
public StrokeDescriptor()
{
}
public bool IsEqual(StrokeDescriptor strd)
{
// If the no of templates in them are different return false
if( _strokeDescriptor.Count != strd.Template.Count )
return false;
// Compare each tag in the template. If any one of them is different, return false;
for( int i = 0; i < _strokeDescriptor.Count; i++ )
if( _strokeDescriptor[i] != strd.Template[i] )
return false;
return true;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PtsHelper.cs
- WindowsFormsDesignerOptionService.cs
- InlineObject.cs
- TextServicesCompartmentEventSink.cs
- GACMembershipCondition.cs
- ImageMetadata.cs
- CompilerInfo.cs
- EmptyImpersonationContext.cs
- SingleAnimationBase.cs
- PageSetupDialog.cs
- VirtualizingStackPanel.cs
- PeerApplication.cs
- TextLineResult.cs
- ImageCodecInfoPrivate.cs
- XslCompiledTransform.cs
- ListItemParagraph.cs
- InkCanvasSelection.cs
- EntityDataSourceEntityTypeFilterItem.cs
- AdRotator.cs
- CookieHandler.cs
- Model3D.cs
- TextBoxDesigner.cs
- WebSysDefaultValueAttribute.cs
- GridSplitter.cs
- CounterSampleCalculator.cs
- PeerChannelListener.cs
- UmAlQuraCalendar.cs
- PolicyException.cs
- PartManifestEntry.cs
- CryptoProvider.cs
- PrintPreviewControl.cs
- DiagnosticsElement.cs
- RenderOptions.cs
- Point.cs
- RequestNavigateEventArgs.cs
- ProxyWebPartManager.cs
- ExplicitDiscriminatorMap.cs
- NGCSerializationManagerAsync.cs
- TreeViewAutomationPeer.cs
- OleDbWrapper.cs
- xml.cs
- RelationshipDetailsRow.cs
- ViewCellSlot.cs
- MethodBuilderInstantiation.cs
- AttributeInfo.cs
- MemberNameValidator.cs
- Wizard.cs
- DebugView.cs
- RequestValidator.cs
- ProxyWebPartManager.cs
- TemplateBindingExpression.cs
- XmlHierarchyData.cs
- MenuItem.cs
- TagPrefixAttribute.cs
- ImageMapEventArgs.cs
- URLMembershipCondition.cs
- ByteStream.cs
- X509ChainElement.cs
- AdvancedBindingEditor.cs
- GridViewSortEventArgs.cs
- SqlInfoMessageEvent.cs
- SqlDataSourceFilteringEventArgs.cs
- AutoSizeToolBoxItem.cs
- SchemaImporter.cs
- ValidationSummary.cs
- TreeNodeClickEventArgs.cs
- XmlSecureResolver.cs
- SystemIPInterfaceStatistics.cs
- XXXOnTypeBuilderInstantiation.cs
- Resources.Designer.cs
- SqlClientFactory.cs
- XmlDocumentSchema.cs
- SystemEvents.cs
- EpmContentSerializerBase.cs
- DataGridViewTextBoxColumn.cs
- NameSpaceExtractor.cs
- TransformGroup.cs
- MessagePropertyVariants.cs
- SqlDependencyUtils.cs
- AdPostCacheSubstitution.cs
- Types.cs
- UrlSyndicationContent.cs
- Int16KeyFrameCollection.cs
- DesignerDataTableBase.cs
- InvalidDataException.cs
- WebBrowserBase.cs
- Encoding.cs
- InlineObject.cs
- StickyNoteContentControl.cs
- PersonalizationStateQuery.cs
- UnmanagedBitmapWrapper.cs
- LinkUtilities.cs
- SqlBulkCopyColumnMappingCollection.cs
- InputReportEventArgs.cs
- NativeMethods.cs
- Renderer.cs
- wgx_commands.cs
- HyperLinkField.cs
- clipboard.cs
- UriExt.cs